Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

sockaddr_in Struct Reference

sockaddr_in Struct Reference
[Fnet_socket]

IPv4 Socket address structure. More...

#include <fnet_socket.h>

Data Fields

struct in_addr sin_addr
 32-bit internet address.
fnet_address_family_t sin_family
 Specifies the address family.
fnet_uint16_t sin_port
 16-bit port number used to demultiplex the transport-level messages (in network byte order).
fnet_scope_id_t sin_scope_id
 Scope zone index, defining network interface.

Detailed Description

IPv4 Socket address structure.

See also:
sockaddr

To make manipulation of the sockaddr structure easier, the TCP/IPv4 stack also defines the equivalent structure sockaddr_in ("in" means "Internet").

Definition at line 71 of file sockets.h.


Field Documentation

struct in_addr sin_addr

32-bit internet address.

Definition at line 75 of file sockets.h.

Specifies the address family.


It must ne set to AF_INET.

Definition at line 215 of file fnet_socket.h.

fnet_uint16_t sin_port

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

Definition at line 217 of file fnet_socket.h.

Scope zone index, defining network interface.

Definition at line 220 of file fnet_socket.h.