Nut/Net supports connectionless UDP sockets only.
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. | |
int | NutUdpSetSockOpt (UDPSOCKET *sock, int optname, CONST void *optval, int optlen) |
Set value of a UDP socket option. | |
int | NutUdpGetSockOpt (UDPSOCKET *sock, int optname, void *optval, int optlen) |
Get a UDP socket option value. | |
Variables | |
UDPSOCKET * | udpSocketList |
|
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.
|
|
Get a UDP socket option value. The following values can be set:
|
|
Receive an UDP datagram.
|
|
Send an UDP datagram.
|
|
Set value of a UDP socket option. The following values can be set:
|
|
Linked list of all UDP sockets. |