jdk/src/share/classes/java/net/Inet4AddressImpl.java
changeset 16870 f35b2bd19761
parent 10596 39b3a979e600
child 23010 6dadb192ad81
equal deleted inserted replaced
16869:4adc2d6d2d5a 16870:f35b2bd19761
    38     private native boolean isReachable0(byte[] addr, int timeout, byte[] ifaddr, int ttl) throws IOException;
    38     private native boolean isReachable0(byte[] addr, int timeout, byte[] ifaddr, int ttl) throws IOException;
    39 
    39 
    40     public synchronized InetAddress anyLocalAddress() {
    40     public synchronized InetAddress anyLocalAddress() {
    41         if (anyLocalAddress == null) {
    41         if (anyLocalAddress == null) {
    42             anyLocalAddress = new Inet4Address(); // {0x00,0x00,0x00,0x00}
    42             anyLocalAddress = new Inet4Address(); // {0x00,0x00,0x00,0x00}
    43             anyLocalAddress.hostName = "0.0.0.0";
    43             anyLocalAddress.holder().hostName = "0.0.0.0";
    44         }
    44         }
    45         return anyLocalAddress;
    45         return anyLocalAddress;
    46     }
    46     }
    47 
    47 
    48     public synchronized InetAddress loopbackAddress() {
    48     public synchronized InetAddress loopbackAddress() {