xref: /haiku/headers/posix/arpa/inet.h (revision 51978af14a173e7fae0563b562be5603bc652aeb)
1 /* arpa/inet.h */
2 
3 /* public definitions of inet functions... */
4 
5 #ifndef _INET_H_
6 #define _INET_H_
7 
8 #include <sys/param.h>
9 #include <sys/types.h>
10 #include <netinet/in.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 in_addr_t        inet_addr (const char *);
17 int              inet_aton (const char *, struct in_addr *);
18 in_addr_t        inet_lnaof (struct in_addr);
19 struct in_addr   inet_makeaddr (in_addr_t , in_addr_t);
20 char *           inet_neta (in_addr_t, char *, size_t);
21 in_addr_t        inet_netof (struct in_addr);
22 in_addr_t        inet_network (const char *);
23 char            *inet_net_ntop (int, const void *, int, char *, size_t);
24 int              inet_net_pton (int, const char *, void *, size_t);
25 char            *inet_ntoa (struct in_addr);
26 int              inet_pton (int, const char *, void *);
27 const char      *inet_ntop (int, const void *, char *, size_t);
28 u_int            inet_nsap_addr (const char *, u_char *, int);
29 char            *inet_nsap_ntoa (int, const u_char *, char *);
30 
31 #ifdef __cplusplus
32 }
33 #endif
34 
35 #endif /* _INET_H */
36