4 #include <sys/socket.h>
6 #define INADDR_LOOPBACK 0x7f000001
7 #define INADDR_ANY 0x00000000
8 #define INADDR_BROADCAST 0xFFFFFFFF
9 #define INADDR_NONE 0xFFFFFFFF
11 #define INET_ADDRSTRLEN 16
17 #define IPPROTO_UDP 17
22 #define IP_MULTICAST_LOOP 9
23 #define IP_MULTICAST_TTL 10
24 #define IP_ADD_MEMBERSHIP 11
25 #define IP_DROP_MEMBERSHIP 12
27 typedef uint16_t in_port_t;
28 typedef uint32_t in_addr_t;
35 sa_family_t sin_family;
38 unsigned char sin_zero[8];