1 #ifndef WIN32_LEAN_AND_MEAN 2 #define WIN32_LEAN_AND_MEAN 3 #endif 4 #undef __CRT__NO_INLINE 5 #define __CRT__NO_INLINE 6 #include <winsock2.h> 7 #include <ws2tcpip.h> 8 9 #undef IN6_SET_ADDR_UNSPECIFIED 10 #define IN6_SET_ADDR_UNSPECIFIED(a) memset((a)->s6_bytes,0,sizeof(struct in6_addr)) 11 IN6ADDR_SETANY(struct sockaddr_in6 * a)12void IN6ADDR_SETANY(struct sockaddr_in6 *a) 13 { 14 a->sin6_family = AF_INET6; 15 a->sin6_port = 0; 16 a->sin6_flowinfo = 0; 17 IN6_SET_ADDR_UNSPECIFIED(&a->sin6_addr); 18 a->sin6_scope_id = 0; 19 } 20