NNN50 WIFI_API library

Dependents:   NNN50_CE_Test_UDP NNN50_linux_firmware NNN50_SoftAP_HelloWorld NNN50_BLEWIFISensor ... more

Embed: (wiki syntax)

« Back to documentation index

sockaddr_in Struct Reference

sockaddr_in Struct Reference
[DataTypes]

Socket address structure for IPV4 addresses. Used to specify socket address information to which to connect to. Can be cast to sockaddr structure. More...

#include <socket.h>

Data Fields

uint16 sin_family
uint16 sin_port
in_addr sin_addr
uint8 sin_zero [8]

Detailed Description

Socket address structure for IPV4 addresses. Used to specify socket address information to which to connect to. Can be cast to sockaddr structure.

Definition at line 598 of file socket.h.


Field Documentation

IP Address of the socket. The IP address is of type in_addr structure. Can be set to "0" to accept any IP address for server operation. non zero otherwise.

Definition at line 613 of file socket.h.

Specifies the address family(AF). Members of AF_INET address family are IPv4 addresses. Hence,the only supported value for this is AF_INET.

Definition at line 600 of file socket.h.

Port number of the socket. Network sockets are identified by a pair of IP addresses and port number. It must be set in the Network Byte Order format , _htons (e.g. _htons(80)). Can NOT have zero value.

Definition at line 606 of file socket.h.

Padding to make structure the same size as sockaddr.

Definition at line 619 of file socket.h.