1arpa_inet.h(0P)            POSIX Programmer's Manual           arpa_inet.h(0P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10
11

NAME

13       arpa/inet.h — definitions for internet operations
14

SYNOPSIS

16       #include <arpa/inet.h>
17

DESCRIPTION

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

APPLICATION USAGE

54       None.
55

RATIONALE

57       None.
58

FUTURE DIRECTIONS

60       None.
61

SEE ALSO

63       <inttypes.h>, <netinet_in.h>
64
65       The  System  Interfaces  volume  of POSIX.1‐2008, htonl(), inet_addr(),
66       inet_ntop()
67
69       Portions of this text are reprinted and reproduced in  electronic  form
70       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
71       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
72       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
73       cal and Electronics Engineers,  Inc  and  The  Open  Group.   (This  is
74       POSIX.1-2008  with  the  2013  Technical Corrigendum 1 applied.) In the
75       event of any discrepancy between this version and the original IEEE and
76       The  Open Group Standard, the original IEEE and The Open Group Standard
77       is the referee document. The original Standard can be  obtained  online
78       at http://www.unix.org/online.html .
79
80       Any  typographical  or  formatting  errors that appear in this page are
81       most likely to have been introduced during the conversion of the source
82       files  to  man page format. To report such errors, see https://www.ker
83       nel.org/doc/man-pages/reporting_bugs.html .
84
85
86
87IEEE/The Open Group                  2013                      arpa_inet.h(0P)
Impressum