Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

sockaddr Struct Reference

sockaddr Struct Reference
[Fnet_socket]

Socket address structure. More...

#include <fnet_socket.h>

Data Fields

fnet_address_family_t sa_family
 Address family.
fnet_uint16_t sa_port
 16-bit port number used to demultiplex the transport-level messages (in network byte order).
fnet_scope_id_t sa_scope_id
 Scope zone index, defining network interface.
fnet_uint8_t sa_data [FNET_SA_DATA_SIZE]
 Address value.

Detailed Description

Socket address structure.

See also:
sockaddr_in, sockaddr_in6

The original goal of the sockaddr structure is to support multiple protocols. For the TCP/IP stack sa_data, it contains a destination address and port number for a socket.

Definition at line 92 of file sockets.h.


Field Documentation

fnet_uint8_t sa_data[FNET_SA_DATA_SIZE]

Address value.

For the TCP/IP stack, it contains the destination address and port number for a socket.

Definition at line 280 of file fnet_socket.h.

Address family.

Specifies the address family, to which the address belongs.
It is defined by fnet_address_family_t.

Definition at line 273 of file fnet_socket.h.

fnet_uint16_t sa_port

16-bit port number used to demultiplex the transport-level messages (in network byte order).

Definition at line 276 of file fnet_socket.h.

Scope zone index, defining network interface.

Definition at line 279 of file fnet_socket.h.