Nut/OS  5.0.5
API Reference
udp_socket Struct Reference

UDP socket information structure. More...

#include <sock_var.h>

Collaboration diagram for udp_socket:
[legend]

Data Fields

UDPSOCKETso_next
 Link to next tcp socket structure.
uint16_t so_local_port
 Local port number in net byte order.
NETBUFso_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.

Detailed Description

UDP socket information structure.

Applications should not rely on the content of this structure. It may change without notice.

Examples:

icmp-udp/icmp-udp.c, and snmpd/snmpd.c.


Field Documentation

Received, but not read by application.

Referenced by NutUdpDestroySocket(), NutUdpInput(), and NutUdpReceiveFrom().

Number of data bytes in the receive buffer.

Referenced by NutUdpInput(), and NutUdpReceiveFrom().

Receive buffer size.

Referenced by NutUdpGetSockOpt(), NutUdpInput(), and NutUdpSetSockOpt().

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().


The documentation for this struct was generated from the following file: