Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ in(5) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getsockopt(3N-xs)

setsockopt(3N-xs)

socket(5)

in(5)                                                                 in(5)

NAME
     in - Internet Protocol family (X/Open Sockets)

SYNOPSIS
     #include <netinet/in.h>

DESCRIPTION
     The <netinet/in.h> header defines the following types through typedef:

     inportt           An unsigned integral type of exactly 16 bits.

     inaddrt           An unsigned integral type of exactly 32 bits.

     The <netinet/in.h> header defines the inaddr structure that includes
     at least the following member:

     inaddrt      saddr

     The <netinet/in.h> header defines the sockaddrin structure that
     includes at least the following member:

     safamilyt    sinfamily
     inportt      sinport
     struct inaddr sinaddr
     unsigned char  sinzero[8]

     The sockaddrin 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 defined in this document.

     The <netinet/in.h> header defines the type safamilyt as described in
     <sys/socket.h>.

     The <netinet/in.h> header defines the following macros for use as
     values of the level argument of getsockopt and setsockopt:

     IPPROTOIP          Dummy for IP.

     IPPROTOICMP        Control message protocol.

     IPPROTOTCP         TCP.

     IPPROTOUDP         User datagram protocol.

     The <netinet/in.h> header defines the following macros for use as des-
     tination addresses for connect, sendmsg and sendto:

     INADDRANY          Local host address.

     INADDRBROADCAST    Broadcast address.





Page 1                       Reliant UNIX 5.44                Printed 11/98

in(5)                                                                 in(5)

SEE ALSO
     getsockopt(3N-xs), setsockopt(3N-xs), socket(5).




















































Page 2                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026