1<arpa/inet.h>(0P)          POSIX Programmer's Manual         <arpa/inet.h>(0P)
2
3
4

NAME

6       arpa/inet.h - definitions for internet operations
7

SYNOPSIS

9       #include <arpa/inet.h>
10

DESCRIPTION

12       The  in_port_t  and  in_addr_t  types  shall be defined as described in
13       <netinet/in.h> .
14
15       The in_addr structure shall be defined as described in <netinet/in.h> .
16
17       The INET_ADDRSTRLEN  and INET6_ADDRSTRLEN  macros shall be  defined  as
18       described in <netinet/in.h> .
19
20       The following shall either be declared as functions, defined as macros,
21       or both. If functions are declared, function prototypes shall  be  pro‐
22       vided.
23
24
25              uint32_t htonl(uint32_t);
26              uint16_t htons(uint16_t);
27              uint32_t ntohl(uint32_t);
28              uint16_t ntohs(uint16_t);
29
30       The  uint32_t and uint16_t types shall be defined as described in <int‐
31       types.h> .
32
33       The following shall be declared as functions and may also be defined as
34       macros. Function prototypes shall be provided.
35
36
37              in_addr_t    inet_addr(const char *);
38              char        *inet_ntoa(struct in_addr);
39              const char  *inet_ntop(int, const void *restrict, char *restrict,
40                               socklen_t);
41              int          inet_pton(int, const char *restrict, void *restrict);
42
43       Inclusion of the <arpa/inet.h> header may also make visible all symbols
44       from <netinet/in.h> and <inttypes.h>.
45
46       The following sections are informative.
47

APPLICATION USAGE

49       None.
50

RATIONALE

52       None.
53

FUTURE DIRECTIONS

55       None.
56

SEE ALSO

58       <netinet/in.h>,  <inttypes.h>,  the   System   Interfaces   volume   of
59       IEEE Std 1003.1-2001, htonl(), inet_addr()
60
62       Portions  of  this text are reprinted and reproduced in electronic form
63       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
64       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
65       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
66       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
67       event of any discrepancy between this version and the original IEEE and
68       The  Open Group Standard, the original IEEE and The Open Group Standard
69       is the referee document. The original Standard can be  obtained  online
70       at http://www.opengroup.org/unix/online.html .
71
72
73
74IEEE/The Open Group                  2003                    <arpa/inet.h>(0P)
Impressum