2 * Acess2 POSIX Sockets Emulation
3 * - By John Hodge (thePowersGang)
8 #ifndef _LIBPSOCKET__NETINET__IN_H_
9 #define _LIBPSOCKET__NETINET__IN_H_
11 #include <sys/socket.h> // sa_family_t
14 typedef uint32_t in_addr_t;
23 sa_family_t sin_family;
25 struct in_addr sin_addr;
28 #define INADDR_ANY 0x00000000
29 #define INADDR_BROADCAST 0xFFFFFFFF
31 // getsockopt/setsockopt(level)
41 unsigned char s6_addr[16];
46 sa_family_t sin6_family;
48 uint32_t sin6_flowinfo;
49 struct in6_addr sin6_addr;
50 uint32_t sin6_scope_id;