summaryrefslogtreecommitdiff
path: root/lib/tests/udp.h
diff options
context:
space:
mode:
authorlinus <linus@nordu.net>2011-01-21 16:32:28 +0100
committerlinus <linus@nordu.net>2011-01-21 16:32:28 +0100
commitf58ce3d98a13e9c8d0930b54c5f593cbfa196d65 (patch)
treef20db3c05fa49c3b9ddad748b8a0b9dc6c79404f /lib/tests/udp.h
parent7b928a0509a668b99679a1bbedd189575fe71559 (diff)
Some more UDP tests.
Diffstat (limited to 'lib/tests/udp.h')
-rw-r--r--lib/tests/udp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tests/udp.h b/lib/tests/udp.h
index 02e1b50..004b7ca 100644
--- a/lib/tests/udp.h
+++ b/lib/tests/udp.h
@@ -3,6 +3,7 @@
#include <sys/time.h>
typedef ssize_t (*data_cb) (const uint8_t *buf, ssize_t len);
+
struct polldata {
int s;
data_cb cb;
@@ -11,3 +12,6 @@ struct polldata {
struct polldata *udp_server (const char *bindto, struct timeval *timeout, data_cb cb);
ssize_t udp_poll (struct polldata *data);
+void udp_free_polldata (struct polldata *data);
+
+ssize_t hd (const uint8_t *buf, ssize_t len);