inet(5) inet(5)
NAME
inet - definitions for internet operations
SYNOPSIS
#include <arpa/inet.h>
DESCRIPTION
The <arpa/inet.h> header defines the type inportt and the type
inaddrt as defined in <netinet/in.h>.
The <arpa/inet.h> header defines the inaddr structure as defined in
<netinet/in.h>.
The following may be declared as functions, or defined as macros, or
both:
inaddrt htonl(inaddrt hostlong);
inportt htons(inportt hostshort);
inaddrt ntohl(inaddrt netlong);
inportt ntohs(inportt netshort);
The following are declared as functions, and may also be defined as
macros:
inaddrt inetaddr(const char *cp);
inaddrt inetlnaof(struct inaddr in);
struct inaddr inetmakeaddr(inaddrt net, inaddrt lna);
inaddrt inetnetof(struct inaddr in);
inaddrt inetnetwork(const char *cp);
char *inetntoa(struct inaddr in);
Inclusion of the <arpa/inet.h> header may also make visible all sym-
bols from <netinet/in.h>.
SEE ALSO
byteorder(3N-xs), inet(3N-xs), in(5).
Page 1 Reliant UNIX 5.44 Printed 11/98