NAME | SYNOPSIS | DESCRIPTION | SEE ALSO
#include <netinet/in.h>
The <netinet/in.h> header defines the following types through typedef:
An unsigned integral type of exactly 16 bits.
An unsigned integral type of exactly 32 bits. The <netinet/in.h> header defines the in_addr structure that includes the following member:
in_addr_t | s_addr |
The <netinet/in.h> header defines the type sa_family_t as described in socket(3HEAD).
The <netinet/in.h> header defines the following macros for use as values of the level argument of getsockopt() and setsockopt():
Dummy for IP
Control message protocol
TCP
User datagram protocol The <netinet/in.h> header defines the following macros for use as destination addresses for connect(), sendmsg(), and sendto():
Local host address
Broadcast address
For applications that do not require standard-conforming behavior (those that use the socket interfaces described in section 3N of the reference manual; see Intro(3) and standards(5)), the <netinet/in.h> header defines the sockaddr_in structure that includes the following members:
sa_family_t | sin_family |
in_port_t | sin_port |
struct in_addr | sin_addr |
char | sin_zero[8] |
For applications that require standard-conforming behavior (those that use the socket interfaces described in section 3XN of the reference manual; see Intro(3) and standards(5)), the <netinet/in.h> header defines the sockaddr_in structure that includes the following members:
sa_family_t | sin_family |
in_port_t | sin_port |
struct in_addr | sin_addr |
unsigned char | sin_zero[8] |
The sockaddr_in structure is used to store addresses for the Internet protocol family. Values of this type must be cast to struct sockaddr for use with the socket interfaces.
Intro(3), connect(3SOCKET), connect(3XNET), getsockopt(3SOCKET), getsockopt(3XNET), sendmsg(3SOCKET), sendmsg(3XNET), sendto(3SOCKET), sendto(3XNET), setsockopt(3SOCKET), setsockopt(3XNET), socket(3HEAD), standards(5)
NAME | SYNOPSIS | DESCRIPTION | SEE ALSO