1inet.h(3HEAD)                       Headers                      inet.h(3HEAD)
2
3
4

NAME

6       inet.h, inet - definitions for internet operations
7

SYNOPSIS

9       #include <arpa/inet.h>
10
11

DESCRIPTION

13       The   <arpa/inet.h>   header  defines  the  type  in_port_t,  the  type
14       in_addr_t, and the in_addr structure, as described in in.h(3HEAD).
15
16
17       Inclusion of the <arpa/inet.h> header may also make visible all symbols
18       from in.h(3HEAD).
19
20
21       The  following  are  declared  as functions, and may also be defined as
22       macros:
23
24         in_addr_t       inet_addr(const char *);
25         in_addr_t       inet_lnaof(struct in_addr);
26         struct in_addr  inet_makeaddr(in_addr_t, in_addr_t);
27         in_addr_t       inet_netof(struct in_addr);
28         in_addr_t       inet_network(const char *);
29         char            *inet_ntoa(struct in_addr);
30
31
32   Default
33       For applications  that  do  not  require  standard-conforming  behavior
34       (those  that  use  the socket interfaces described in section 3N of the
35       reference manual; see Intro(3) and standards(5)), the following may  be
36       declared as functions, or defined as macros, or both:
37
38         uint32_t    htonl(uint32_t);
39         uint16_t    htons(uint16_t);
40         uint32_t    ntohl(uint32_t);
41         uint16_t    ntohs(uint16_t);
42
43
44   Standard conforming
45       For  applications that require standard-conforming behavior (those that
46       use the socket interfaces described in section  3XN  of  the  reference
47       manual;  see  Intro(3) and standards(5)), the following may be declared
48       as functions, or defined as macros, or both:
49
50         in_addr_t    htonl(in_addr_t);
51         in_port_t    htons(in_port_t);
52         in_addr_t    ntohl(in_addr_t);
53         in_port_t    ntohs(in_port_t);
54
55

ATTRIBUTES

57       See attributes(5) for descriptions of the following attributes:
58
59
60
61
62       ┌─────────────────────────────┬─────────────────────────────┐
63       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
64       ├─────────────────────────────┼─────────────────────────────┤
65       │Interface Stability          │Standard                     │
66       └─────────────────────────────┴─────────────────────────────┘
67

SEE ALSO

69       Intro(3),     htonl(3SOCKET),     htonl(3XNET),     inet_addr(3SOCKET),
70       inet_addr(3XNET), in.h(3HEAD), attributes(5), standards(5)
71
72
73
74SunOS 5.11                        30 Aug 2002                    inet.h(3HEAD)
Impressum