The structure stores generic socket address.

The sockaddr structure represents addresses in a protocol-independent way. It includes the address family, and the address data. The actual format of the address data is determined by the address family specified in sa_family.

Public Attributes#

uint8_t

Total length of the structure.

Address family (e.g., AF_INET).

char

Socket address data. The actual format is determined by the address family.

Public Attribute Documentation#

sa_len#

uint8_t sockaddr::sa_len

Total length of the structure.


Definition at line 264 of file components/service/bsd_socket/inc/socket.h

sa_family#

sa_family_t sockaddr::sa_family

Address family (e.g., AF_INET).


Definition at line 265 of file components/service/bsd_socket/inc/socket.h

sa_data#

char sockaddr::sa_data[14]

Socket address data. The actual format is determined by the address family.


Definition at line 266 of file components/service/bsd_socket/inc/socket.h