Merge branch 'master' of git://ted.mutabah.net/acess2
[tpg/acess2.git] / Usermode / Libraries / libpsocket.so_src / include_exp / arpa / inet.h
1 /*
2  * Acess2 POSIX Sockets Emulation
3  * - By John Hodge (thePowersGang)
4  *
5  * arpa/inet.h
6  * - 
7  */
8 #ifndef _LIBPSOCKET__ARPA__INET_H_
9 #define _LIBPSOCKET__ARPA__INET_H_
10
11 #include <netinet/in.h>
12 #include <stdint.h>     // Should be inttypes.h?
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 extern uint32_t htonl(uint32_t hostlong);
19 extern uint16_t htons(uint16_t hostshort);
20 extern uint32_t ntohl(uint32_t netlong);
21 extern uint16_t ntohs(uint16_t netshort);
22
23 extern in_addr_t        inet_addr(const char *cp);
24 extern in_addr_t        inet_lnaof(struct in_addr in);
25 extern struct in_addr   inet_makeaddr(in_addr_t net, in_addr_t lna);
26 extern in_addr_t        inet_netof(struct in_addr in);
27 extern in_addr_t        inet_network(const char *cp);
28 extern char     *inet_ntoa(struct in_addr in);
29
30 #ifdef __cplusplus
31 }
32 #endif
33
34 #endif
35

UCC git Repository :: git.ucc.asn.au