jdk/src/windows/classes/java/net/TwoStacksPlainDatagramSocketImpl.java
changeset 16870 f35b2bd19761
parent 10704 db5816a6e8c7
child 18192 fa6bd0992104
equal deleted inserted replaced
16869:4adc2d6d2d5a 16870:f35b2bd19761
   100 
   100 
   101         if (optID == SO_BINDADDR) {
   101         if (optID == SO_BINDADDR) {
   102             if ((fd != null && fd1 != null) && !connected) {
   102             if ((fd != null && fd1 != null) && !connected) {
   103                 return anyLocalBoundAddr;
   103                 return anyLocalBoundAddr;
   104             }
   104             }
   105             int family = connectedAddress == null ? -1 : connectedAddress.family;
   105             int family = connectedAddress == null ? -1 : connectedAddress.holder().getFamily();
   106             return socketLocalAddress(family);
   106             return socketLocalAddress(family);
   107         } else
   107         } else
   108             return super.getOption(optID);
   108             return super.getOption(optID);
   109     }
   109     }
   110 
   110