#include <stdint.h>
#include <netinet/in.h>
Data Structures | |
struct | udp_conf |
struct | udp_stats |
struct | udp_sock |
Functions | |
struct udp_sock * | udp_server_create (struct udp_conf *conf) |
void | udp_server_destroy (struct udp_sock *m) |
struct udp_sock * | udp_client_create (struct udp_conf *conf) |
void | udp_client_destroy (struct udp_sock *m) |
ssize_t | udp_send (struct udp_sock *m, const void *data, int size) |
ssize_t | udp_recv (struct udp_sock *m, void *data, int size) |
int | udp_get_fd (struct udp_sock *m) |
int | udp_isset (struct udp_sock *m, fd_set *readfds) |
int | udp_snprintf_stats (char *buf, size_t buflen, char *ifname, struct udp_stats *s, struct udp_stats *r) |
int | udp_snprintf_stats2 (char *buf, size_t buflen, const char *ifname, const char *status, int active, struct udp_stats *s, struct udp_stats *r) |
References udp_sock::fd.
References udp_sock::fd.
References udp_sock::fd.
References udp_sock::addr, udp_stats::bytes, udp_stats::error, udp_sock::fd, udp_stats::messages, and udp_sock::stats.
References udp_sock::fd.
int udp_snprintf_stats | ( | char * | buf, |
size_t | buflen, | ||
char * | ifname, | ||
struct udp_stats * | s, | ||
struct udp_stats * | r | ||
) |
References udp_stats::bytes, udp_stats::error, udp_stats::messages, and size.
int udp_snprintf_stats2 | ( | char * | buf, |
size_t | buflen, | ||
const char * | ifname, | ||
const char * | status, | ||
int | active, | ||
struct udp_stats * | s, | ||
struct udp_stats * | r | ||
) |
References udp_stats::bytes, udp_stats::error, udp_stats::messages, and size.