src/java.base/windows/native/libnet/net_util_md.h
branchunixdomainchannels
changeset 58801 119ac9128c1b
parent 49892 8bed781a8d9c
child 59019 dafa6389ed47
equal deleted inserted replaced
58799:eb491334113f 58801:119ac9128c1b
    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.