Usermode/AxWin3 - Updated clientside IPC code to allow select() usage by client
[tpg/acess2.git] / Usermode / Libraries / libpsocket.so_src / include_exp / netinet / in.h
index 4bde06d..8abf766 100644 (file)
@@ -3,9 +3,11 @@
 
 #include <stdint.h>
 
+typedef uint32_t       in_addr_t;
+
 struct in_addr
 {
-       unsigned long s_addr;
+       in_addr_t s_addr;
 };
 
 struct sockaddr_in
@@ -15,6 +17,17 @@ struct sockaddr_in
        struct in_addr  sin_addr;
 };
 
+#define INADDR_ANY     0x00000000
+#define INADDR_BROADCAST       0xFFFFFFFF
+
+// getsockopt/setsockopt(level)
+enum {
+       IPPROTO_IP,
+       IPPROTO_ICMP,
+       IPPROTO_TCP,
+       IPPROTO_UDP
+};
+
 struct in6_addr
 {
        unsigned char   s6_addr[16];

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