1 /* Copyright 2011, NORDUnet A/S. All rights reserved. */
2 /* See LICENSE for licensing information. */
8 typedef ssize_t (*data_cb) (const uint8_t *buf, ssize_t len);
13 struct timeval *timeout;
16 struct polldata *udp_server (const char *bindto, struct timeval *timeout, data_cb cb);
17 ssize_t udp_poll (struct polldata *data);
18 void udp_free_polldata (struct polldata *data);
20 ssize_t hd (const uint8_t *buf, ssize_t len);