Public Attributes | List of all members
sockaddr_in Struct Reference

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

#include <socket.h>

Public Attributes

in_addr sin_addr
 
uint16 sin_family
 
uint16 sin_port
 
uint8 sin_zero [8]
 

Detailed Description

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

Definition at line 455 of file socket.h.

Member Data Documentation

◆ sin_addr

in_addr sockaddr_in::sin_addr

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.

Definition at line 469 of file socket.h.

◆ sin_family

uint16 sockaddr_in::sin_family

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 456 of file socket.h.

◆ sin_port

uint16 sockaddr_in::sin_port

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

Definition at line 462 of file socket.h.

◆ sin_zero

uint8 sockaddr_in::sin_zero[8]

Padding to make structure the same size as sockaddr.

Definition at line 475 of file socket.h.


The documentation for this struct was generated from the following file:


inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:18:03