udp.c File Reference
Detailed Description
UDP implementation (license: GPLv2).
- Author:
- Roland Riegel
|
Functions |
| void | udp_init () |
| | Initializes the UDP layer.
|
| bool | udp_handle_packet (const uint8_t *ip_remote, const struct udp_header *packet, uint16_t packet_len) |
| | Forwards incoming packets to the appropriate UDP socket.
|
| int | udp_socket_alloc (udp_callback callback) |
| | Allocates a new UDP socket.
|
| bool | udp_socket_free (int socket) |
| | Deallocates an UDP socket and makes it available for future allocations.
|
| bool | udp_bind_local (int socket, uint16_t port_local) |
| | Bind an UDP socket to a local port.
|
| bool | udp_bind_remote (int socket, const uint8_t *ip_remote, uint16_t port_remote) |
| | Bind an UDP socket to a remote port and optionally to a remote host.
|
| bool | udp_unbind_remote (int socket) |
| | Remove the remote binding of an UDP socket.
|
| bool | udp_send (int socket, uint16_t data_len) |
| | Send an UDP packet from the transmit buffer to a remote host.
|