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.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/tests/udp.h b/lib/tests/udp.h
deleted file mode 100644
index a8d5f23..0000000
--- a/lib/tests/udp.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/* Copyright 2011, NORDUnet A/S. All rights reserved. */
-/* See LICENSE for licensing information. */
-
-#include <stdint.h>
-#include <unistd.h>
-#include <sys/time.h>
-
-typedef ssize_t (*data_cb) (const uint8_t *buf, ssize_t len);
-
-struct polldata {
- int s;
- data_cb cb;
- struct timeval *timeout;
-};
-
-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);