summaryrefslogtreecommitdiff
path: root/lib/tests/udp.h
diff options
context:
space:
mode:
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);