Details
udp_addr_valid ()
int udp_addr_valid (const char *addr); |
udp_init ()
socket_udp* udp_init (const char *addr,
uint16_t rx_port,
uint16_t tx_port,
int ttl); |
Creates a session for sending and receiving UDP datagrams over IP
networks.
udp_init_if ()
socket_udp* udp_init_if (const char *addr,
const char *iface,
uint16_t rx_port,
uint16_t tx_port,
int ttl); |
Creates a session for sending and receiving UDP datagrams over IP
networks. The session uses iface as the interface to send and
receive datagrams on.
udp_exit ()
Closes UDP session.
udp_send ()
int udp_send (socket_udp *s,
char *buffer,
int buflen); |
Transmits a UDP datagram containing data from buffer.
udp_recv ()
int udp_recv (socket_udp *s,
char *buffer,
int buflen); |
Reads from datagram queue associated with UDP session.
udp_select ()
int udp_select (struct timeval *timeout); |
Waits for data to arrive for UDP sessions.
udp_fd_zero ()
Clears file descriptor from set associated with UDP sessions (see select(2)).
udp_fd_set ()
Adds file descriptor associated of s to set associated with UDP sessions.
udp_fd_isset ()
Checks if file descriptor associated with UDP session is ready for
reading. This function should be called after udp_select().
udp_fd ()
This function allows applications to apply their own socketopt()'s
and ioctl()'s to the UDP session.