Home
last modified time | relevance | path

Searched refs:addrs (Results 1 – 6 of 6) sorted by relevance

/libcore/ojluni/src/main/java/java/net/
DNetworkInterface.java64 private InetAddress addrs[]; field in NetworkInterface
107 NetworkInterface(String name, int index, InetAddress[] addrs) { in NetworkInterface() argument
110 this.addrs = addrs; in NetworkInterface()
143 local_addrs = new InetAddress[addrs.length]; in getInetAddresses()
154 for (int j=0; j<addrs.length; j++) { in getInetAddresses()
157 sec.checkConnect(addrs[j].getHostAddress(), -1); in getInetAddresses()
159 local_addrs[count++] = addrs[j]; in getInetAddresses()
429 List<InetAddress> addrs = new ArrayList<>(); in getAll() local
434 addrs.add(ifa.ifa_addr); in getAll()
444 ni.addrs = addrs.toArray(new InetAddress[addrs.size()]); in getAll()
[all …]
DMulticastSocket.java522 Enumeration<InetAddress> addrs = ni.getInetAddresses(); in getInterface() local
523 while (addrs.hasMoreElements()) { in getInterface()
524 InetAddress addr = addrs.nextElement(); in getInterface()
576 InetAddress[] addrs = new InetAddress[1]; in getNetworkInterface() local
577 addrs[0] = InetAddress.anyLocalAddress(); in getNetworkInterface()
578 return new NetworkInterface(addrs[0].getHostName(), 0, addrs); in getNetworkInterface()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DNetworkInterfaceTest.java386 Enumeration<InetAddress> addrs = netif.getInetAddresses(); in test_isLoopback() local
387 while (addrs != null && addrs.hasMoreElements()) { in test_isLoopback()
388 if (addrs.nextElement().isLoopbackAddress()) { in test_isLoopback()
454 Enumeration addrs = theInterface.getInetAddresses(); in setUp() local
455 if ((addrs != null) && (addrs.hasMoreElements())) { in setUp()
469 Enumeration addrs = theInterface.getInetAddresses(); in setUp() local
470 if ((addrs != null) && (addrs.hasMoreElements())) { in setUp()
DInterfaceAddressTest.java133 List<InterfaceAddress> addrs = theInterface in setUp() local
135 if (!(addrs == null || addrs.isEmpty())) { in setUp()
136 interfaceAddr = addrs.get(0); in setUp()
/libcore/luni/src/test/java/libcore/java/net/
DSocketTest.java628 List<InetAddress> addrs = Arrays.asList(InetAddress.getAllByName(host));
629 return addrs.stream().allMatch(InetAddress::isLoopbackAddress) &&
630 addrs.contains(Inet4Address.LOOPBACK) && addrs.contains(Inet6Address.LOOPBACK);
/libcore/ojluni/src/main/java/sun/nio/ch/
DNet.java210 Enumeration<InetAddress> addrs = interf.getInetAddresses(); in anyInet4Address()
211 while (addrs.hasMoreElements()) { in anyInet4Address()
212 InetAddress addr = addrs.nextElement(); in anyInet4Address()