equal
deleted
inserted
replaced
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() { |