Home
last modified time | relevance | path

Searched refs:theSocket1 (Results 1 – 2 of 2) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketTest.java786 DatagramSocket theSocket1 = null; in test_setReuseAddressZ() local
790 theSocket1 = new DatagramSocket(null); in test_setReuseAddressZ()
792 theSocket1.setReuseAddress(false); in test_setReuseAddressZ()
794 theSocket1.bind(theAddress); in test_setReuseAddressZ()
795 … theSocket2.bind(new InetSocketAddress(InetAddress.getLocalHost(), theSocket1.getLocalPort())); in test_setReuseAddressZ()
799 if (theSocket1 != null) { in test_setReuseAddressZ()
800 theSocket1.close(); in test_setReuseAddressZ()
808 theSocket1 = new DatagramSocket(null); in test_setReuseAddressZ()
810 theSocket1.setReuseAddress(true); in test_setReuseAddressZ()
812 theSocket1.bind(theAddress); in test_setReuseAddressZ()
[all …]
DMulticastSocketTest.java857 MulticastSocket theSocket1 = new MulticastSocket(null); in setReuseAddressZ() local
858 theSocket1.setReuseAddress(false); in setReuseAddressZ()
864 theSocket1.bind(addr); in setReuseAddressZ()
865 addr = new InetSocketAddress(Inet4Address.getLocalHost(), theSocket1.getLocalPort()); in setReuseAddressZ()
872 theSocket1.close(); in setReuseAddressZ()
876 theSocket1 = new MulticastSocket(null); in setReuseAddressZ()
878 theSocket1.setReuseAddress(true); in setReuseAddressZ()
881 theSocket1.bind(addr); in setReuseAddressZ()
882 addr = new InetSocketAddress(Inet4Address.getLocalHost(), theSocket1.getLocalPort()); in setReuseAddressZ()
885 theSocket1.close(); in setReuseAddressZ()
[all …]