Headers in.h(3HEAD)
NAME
in.h, in - Internet Protocol family
SYNOPSIS
#include
DESCRIPTION
The
through typedef:header defines the following types in_port_t An unsigned integral type of exactly 16 bits.
in_addr_t An unsigned integral type of exactly 32 bits.
The
header defines the in_addr structure that includes the following member:
The
header defines the in_addr structure that includes the following member:
in_addr_t s_addr
The
header defines the type sa_family_t as described in socket.h(3HEAD).
The
header defines the following macros for use as values of the level argument of getsockopt() and set-
sockopt():IPPROTO_IP Dummy for IP
IPPROTO_ICMP Control message protocol
IPPROTO_TCP TCP
IPPROTO_UDP User datagram protocol The
header defines the fol- lowing macros for use as destination
addresses for connect(), sendmsg(), and sendto():SunOS 5.11 Last change: 30 Aug 2002 1
Headers in.h(3HEAD)
INADDR_ANY Local host address
INADDR_BROADCAST Broadcast address
The
that is used to store addresses for the Internet protocol family. Values of this type must be cast to struct sockaddrheader defines the sockaddr_in structure for use with the socket interfaces.
DefaultFor applications that do not require standard-conforming
behavior (those that use the socket interfaces described in
section (3SOCKET) of the reference manual; see Intro(3) andstandards(5)), the
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]
Standard conforming
For applications that require standard-conforming behavior
(those that use the socket interfaces described in section
(3XNET) of the reference manual; see Intro(3) and stan-
dards(5)), the
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]
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:SunOS 5.11 Last change: 30 Aug 2002 2
Headers in.h(3HEAD)
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| Standard | See standards(5). ||_____________________________|_____________________________|
SEE ALSO
Intro(3), connect(3SOCKET), connect(3XNET), getsockopt(3SOCKET), getsockopt(3XNET), sendmsg(3SOCKET), sendmsg(3XNET), sendto(3SOCKET), sendto(3XNET), setsockopt(3SOCKET), setsockopt(3XNET), socket.h(3HEAD), attributes(5), standards(5)SunOS 5.11 Last change: 30 Aug 2002 3