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.
Definition at line 169 of file sock_var.h.
Link to next tcp socket structure.
Definition at line 170 of file sock_var.h.
Referenced by NutDumpSocketList(), NutUdpCreateSocket(), NutUdpDestroySocket(), and NutUdpFindSocket().
Local port number in net byte order.
Definition at line 171 of file sock_var.h.
Referenced by NutDumpSocketList(), NutUdpCreateSocket(), NutUdpFindSocket(), and NutUdpOutput().
Received, but not read by application.
Definition at line 172 of file sock_var.h.
Referenced by NutUdpDestroySocket(), NutUdpInput(), and NutUdpReceiveFrom().
Receiver event queue.
Definition at line 173 of file sock_var.h.
Referenced by NutUdpInput(), NutUdpReceiveFrom(), and NutUdpSetSocketError().
Number of data bytes in the receive buffer.
Definition at line 174 of file sock_var.h.
Referenced by NutUdpInput(), and NutUdpReceiveFrom().
Receive buffer size.
Definition at line 175 of file sock_var.h.
Referenced by NutUdpGetSockOpt(), NutUdpInput(), and NutUdpSetSockOpt().
Last error of socket.
Definition at line 177 of file sock_var.h.
Referenced by NutUdpError(), NutUdpReceiveFrom(), NutUdpSendTo(), and NutUdpSetSocketError().
Remote IP address in net byte order. Important just in case of an error.
Definition at line 178 of file sock_var.h.
Referenced by NutUdpError(), and NutUdpSetSocketError().
Remote port number in net byte order. Important just in case of an error.
Definition at line 179 of file sock_var.h.
Referenced by NutUdpError(), and NutUdpSetSocketError().