Functions | |
UDPSOCKET * | NutUdpCreateSocket (u_short port) |
Create an UDP socket. | |
int | NutUdpSendTo (UDPSOCKET *sock, u_long addr, u_short port, void *data, u_short len) |
Send an UDP datagram. | |
int | NutUdpReceiveFrom (UDPSOCKET *sock, u_long *addr, u_short *port, void *data, u_short size, u_long timeout) |
Receive an UDP datagram. | |
int | NutUdpDestroySocket (UDPSOCKET *sock) |
Close UDP socket. | |
UDPSOCKET * | NutUdpFindSocket (u_short port) |
Find a matching socket. | |
Variables | |
UDPSOCKET * | udpSocketList = 0 |
|
Create an UDP socket.
|
|
Close UDP socket. The memory occupied by the socket is immediately released after calling this function. The application must not use the socket after this call.
|
|
Find a matching socket. Loop through all sockets and find a matching one.
|
|
Receive an UDP datagram.
|
|
Send an UDP datagram.
|
|
Linked list of all UDP sockets. |