Searched refs:networkInterface (Results 1 – 7 of 7) sorted by relevance
/libcore/luni/src/main/java/java/net/ |
D | MulticastSocket.java | 277 NetworkInterface networkInterface = NetworkInterface.getByInetAddress(address); in setInterface() local 278 if (networkInterface == null) { in setInterface() 281 impl.setOption(SocketOptions.IP_MULTICAST_IF2, networkInterface.getIndex()); in setInterface() 291 public void setNetworkInterface(NetworkInterface networkInterface) throws SocketException { in setNetworkInterface() argument 293 if (networkInterface == null) { in setNetworkInterface() 297 impl.setOption(SocketOptions.IP_MULTICAST_IF2, networkInterface.getIndex()); in setNetworkInterface()
|
D | PlainDatagramSocketImpl.java | 121 …ivate static StructGroupReq makeGroupReq(InetAddress gr_group, NetworkInterface networkInterface) { in makeGroupReq() argument 122 int gr_interface = (networkInterface != null) ? networkInterface.getIndex() : 0; in makeGroupReq()
|
D | NetworkInterface.java | 264 for (NetworkInterface networkInterface : getNetworkInterfacesList()) { in getByInetAddress() 265 if (networkInterface.addresses.contains(address)) { in getByInetAddress() 266 return networkInterface; in getByInetAddress()
|
D | InetAddress.java | 708 …public boolean isReachable(NetworkInterface networkInterface, final int ttl, final int timeout) th… in isReachable() argument 714 if (networkInterface == null) { in isReachable() 720 List<InetAddress> sourceAddresses = Collections.list(networkInterface.getInetAddresses()); in isReachable()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | DatagramChannelTest.java | 159 NetworkInterface networkInterface = networkInterfaces.nextElement(); in getNonLoopbackNetworkInterfaceAddress() local 160 if (networkInterface.isLoopback() || !networkInterface.isUp()) { in getNonLoopbackNetworkInterfaceAddress() 163 Enumeration<InetAddress> inetAddresses = networkInterface.getInetAddresses(); in getNonLoopbackNetworkInterfaceAddress()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | MulticastSocketTest.java | 313 NetworkInterface networkInterface, InetAddress group, InetAddress group2) in test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface() argument 324 receivingSocket.joinGroup(groupAddress, networkInterface); in test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface() 339 receivingSocket.joinGroup(groupAddress, networkInterface); in test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface() 449 NetworkInterface networkInterface, InetAddress group) throws Exception { in test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface_multiple_joins() argument 454 mss.joinGroup(groupSockAddr, networkInterface); in test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface_multiple_joins() 457 mss.joinGroup(groupSockAddr, networkInterface); in test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface_multiple_joins() 551 NetworkInterface networkInterface, InetAddress group, InetAddress group2) in test_leaveGroupLjava_net_SocketAddressLjava_net_NetworkInterface() argument 567 mss.joinGroup(groupSockAddr, networkInterface); in test_leaveGroupLjava_net_SocketAddressLjava_net_NetworkInterface() 569 mss.leaveGroup(groupSockAddr2, networkInterface); in test_leaveGroupLjava_net_SocketAddressLjava_net_NetworkInterface() 574 mss.leaveGroup(groupSockAddr, networkInterface); in test_leaveGroupLjava_net_SocketAddressLjava_net_NetworkInterface() [all …]
|
D | InetAddressTest.java | 388 NetworkInterface networkInterface = networkInterfaces.nextElement(); in test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface() local 389 Enumeration<InetAddress> addresses = networkInterface in test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface() 394 loopbackInterface = networkInterface; in test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface()
|