Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 89 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.
fnet_address_family_t sa_family |
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.
Generated on Tue Jul 12 2022 12:47:23 by
