equal
deleted
inserted
replaced
24 */ |
24 */ |
25 #include <winsock2.h> |
25 #include <winsock2.h> |
26 #include <WS2tcpip.h> |
26 #include <WS2tcpip.h> |
27 #include <iphlpapi.h> |
27 #include <iphlpapi.h> |
28 #include <icmpapi.h> |
28 #include <icmpapi.h> |
|
29 #include <afunix.h> |
29 |
30 |
30 /* used to disable connection reset messages on Windows XP */ |
31 /* used to disable connection reset messages on Windows XP */ |
31 #ifndef SIO_UDP_CONNRESET |
32 #ifndef SIO_UDP_CONNRESET |
32 #define SIO_UDP_CONNRESET _WSAIOW(IOC_VENDOR,12) |
33 #define SIO_UDP_CONNRESET _WSAIOW(IOC_VENDOR,12) |
33 #endif |
34 #endif |
54 |
55 |
55 typedef union { |
56 typedef union { |
56 struct sockaddr sa; |
57 struct sockaddr sa; |
57 struct sockaddr_in sa4; |
58 struct sockaddr_in sa4; |
58 struct sockaddr_in6 sa6; |
59 struct sockaddr_in6 sa6; |
|
60 struct sockaddr_un saun; |
59 } SOCKETADDRESS; |
61 } SOCKETADDRESS; |
60 |
62 |
61 /* |
63 /* |
62 * passed to NET_BindV6. Both ipv4_fd and ipv6_fd must be created and unbound |
64 * passed to NET_BindV6. Both ipv4_fd and ipv6_fd must be created and unbound |
63 * sockets. On return they may refer to different sockets. |
65 * sockets. On return they may refer to different sockets. |