2 * Acess2 POSIX Sockets Emulation
3 * - By John Hodge (thePowersGang)
8 #ifndef _LIBPSOCKET__ARPA__INET_H_
9 #define _LIBPSOCKET__ARPA__INET_H_
11 #include <netinet/in.h>
12 #include <stdint.h> // Should be inttypes.h?
14 extern uint32_t htonl(uint32_t hostlong);
15 extern uint16_t htons(uint16_t hostshort);
16 extern uint32_t ntohl(uint32_t netlong);
17 extern uint16_t ntohs(uint16_t netshort);
19 extern in_addr_t inet_addr(const char *cp);
20 extern in_addr_t inet_lnaof(struct in_addr in);
21 extern struct in_addr inet_makeaddr(in_addr_t net, in_addr_t lna);
22 extern in_addr_t inet_netof(struct in_addr in);
23 extern in_addr_t inet_network(const char *cp);
24 extern char *inet_ntoa(struct in_addr in);