UDP socket information structure. More...
#include <sock_var.h>
Data Fields | |
UDPSOCKET * | so_next |
Link to next tcp socket structure. | |
uint16_t | so_local_port |
Local port number in net byte order. | |
NETBUF * | so_rx_nb |
Received, but not read by application. | |
HANDLE | so_rx_rdy |
Receiver event queue. | |
int | so_rx_cnt |
Number of data bytes in the receive buffer. | |
int | so_rx_bsz |
Receive buffer size. | |
uint16_t | so_last_error |
Last error of socket. | |
uint32_t | so_remote_addr |
Remote IP address in net byte order. Important just in case of an error. | |
uint16_t | so_remote_port |
Remote port number in net byte order. Important just in case of an error. |
UDP socket information structure.
Applications should not rely on the content of this structure. It may change without notice.
Link to next tcp socket structure.
Referenced by NutDumpSocketList(), NutUdpCreateSocket(), NutUdpDestroySocket(), and NutUdpFindSocket().
Local port number in net byte order.
Referenced by NutDumpSocketList(), NutUdpCreateSocket(), NutUdpFindSocket(), and NutUdpOutput().
Received, but not read by application.
Referenced by NutUdpDestroySocket(), NutUdpInput(), and NutUdpReceiveFrom().
Receiver event queue.
Referenced by NutUdpInput(), NutUdpReceiveFrom(), and NutUdpSetSocketError().
Number of data bytes in the receive buffer.
Referenced by NutUdpInput(), and NutUdpReceiveFrom().
Receive buffer size.
Referenced by NutUdpGetSockOpt(), NutUdpInput(), and NutUdpSetSockOpt().
Last error of socket.
Referenced by NutUdpError(), NutUdpReceiveFrom(), NutUdpSendTo(), and NutUdpSetSocketError().
Remote IP address in net byte order. Important just in case of an error.
Referenced by NutUdpError(), and NutUdpSetSocketError().
Remote port number in net byte order. Important just in case of an error.
Referenced by NutUdpError(), and NutUdpSetSocketError().