Home
last modified time | relevance | path

Searched refs:networkInterface (Results 1 – 10 of 10) sorted by relevance

/libcore/luni/src/test/java/libcore/java/nio/channels/
DDatagramChannelMulticastTest.java230 NetworkInterface networkInterface) throws Exception { in check_joinAnySource() argument
237 receiverChannel.join(group, networkInterface); in check_joinAnySource()
240 createChannelAndSendMulticastMessage(group, localAddress.getPort(), msg, networkInterface); in check_joinAnySource()
250 group2, localAddress.getPort(), msg2, networkInterface); in check_joinAnySource()
410 NetworkInterface networkInterface) throws Exception { in check_joinAnySource_multiple_joins() argument
416 MembershipKey membershipKey1 = dc.join(group, networkInterface); in check_joinAnySource_multiple_joins()
421 MembershipKey membershipKey1_2 = dc.join(group, networkInterface); in check_joinAnySource_multiple_joins()
436 NetworkInterface networkInterface) throws Exception { in check_joinAnySource_multicastLoopOption() argument
444 dc.setOption(StandardSocketOptions.IP_MULTICAST_IF, networkInterface); in check_joinAnySource_multicastLoopOption()
446 dc.join(group, networkInterface); in check_joinAnySource_multicastLoopOption()
[all …]
DDatagramChannelTest.java277 NetworkInterface networkInterface = networkInterfaces.nextElement(); in getNonLoopbackNetworkInterfaceAddress() local
278 if (networkInterface.isLoopback() || !networkInterface.isUp()) { in getNonLoopbackNetworkInterfaceAddress()
281 Enumeration<InetAddress> inetAddresses = networkInterface.getInetAddresses(); in getNonLoopbackNetworkInterfaceAddress()
DMembershipKeyTest.java121 assertEquals(NETWORK_INTERFACE, key.networkInterface()); in test_networkInterface()
123 assertEquals(NETWORK_INTERFACE, key.networkInterface()); in test_networkInterface()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DMulticastSocketTest.java327 NetworkInterface networkInterface, InetAddress group, InetAddress group2) in check_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface() argument
332 if (networkInterface != null) { in check_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
333 sendingSocket.setNetworkInterface(networkInterface); in check_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
341 receivingSocket.joinGroup(groupAddress, networkInterface); in check_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
357 if (networkInterface != null) { in check_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
358 sendingSocket.setNetworkInterface(networkInterface); in check_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
365 receivingSocket.joinGroup(groupAddress, networkInterface); in check_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
470 NetworkInterface networkInterface, InetAddress group) throws Exception { in check_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface_multiple_joins() argument
475 mss.joinGroup(groupSockAddr, networkInterface); in check_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface_multiple_joins()
478 mss.joinGroup(groupSockAddr, networkInterface); in check_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface_multiple_joins()
[all …]
DInetAddressTest.java372 NetworkInterface networkInterface = networkInterfaces.nextElement(); in test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface() local
373 Enumeration<InetAddress> addresses = networkInterface.getInetAddresses(); in test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface()
377 loopbackInterface = networkInterface; in test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface()
/libcore/ojluni/src/main/java/java/nio/channels/
DMembershipKey.java167 public abstract NetworkInterface networkInterface(); in networkInterface() method in MembershipKey
/libcore/ojluni/src/main/java/java/net/
DPlainDatagramSocketImpl.java175 NetworkInterface networkInterface) { in makeGroupReq() argument
176 int gr_interface = (networkInterface != null) ? networkInterface.getIndex() : 0; in makeGroupReq()
DAbstractPlainDatagramSocketImpl.java402 NetworkInterface networkInterface = NetworkInterface.getByIndex(niIndex); in getNIFirstAddress() local
403 Enumeration<InetAddress> addressesEnum = networkInterface.getInetAddresses(); in getNIFirstAddress()
/libcore/ojluni/src/main/java/sun/nio/ch/
DMembershipRegistry.java58 if (key.networkInterface().equals(interf)) { in checkMembership()
DMembershipKeyImpl.java161 public NetworkInterface networkInterface() { in networkInterface() method in MembershipKeyImpl