summaryrefslogtreecommitdiff
path: root/src/recv.h
diff options
context:
space:
mode:
authorlishu <[email protected]>2018-09-29 14:25:18 +0800
committerlishu <[email protected]>2018-09-29 14:25:18 +0800
commit4ac33d9d46da16f249523cdb930d0831dd1b57b1 (patch)
tree61e54a64de7447bb929b242efe110fc4eb83b037 /src/recv.h
20180929 create
Diffstat (limited to 'src/recv.h')
-rw-r--r--src/recv.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/recv.h b/src/recv.h
new file mode 100644
index 0000000..ab9ef1f
--- /dev/null
+++ b/src/recv.h
@@ -0,0 +1,24 @@
+#ifndef _RECV_H
+#define _RECV_H
+
+#define BUF_SIZE 1500
+
+typedef struct recv_data_s
+{
+ int size;
+ uint32_t src_ip;
+ char* data;
+}recv_data_t;
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void* udp_recv_data(void *param);
+void* recv_data_from_queue(void *param);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif