Home
last modified time | relevance | path

Searched refs:theSocket2 (Results 1 – 5 of 5) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketTest.java787 DatagramSocket theSocket2 = null; in test_setReuseAddressZ() local
791 theSocket2 = new DatagramSocket(null); in test_setReuseAddressZ()
793 theSocket2.setReuseAddress(false); in test_setReuseAddressZ()
795theSocket2.bind(new InetSocketAddress(InetAddress.getLocalHost(), theSocket1.getLocalPort())); in test_setReuseAddressZ()
802 if (theSocket2 != null) { in test_setReuseAddressZ()
803 theSocket2.close(); in test_setReuseAddressZ()
809 theSocket2 = new DatagramSocket(null); in test_setReuseAddressZ()
811 theSocket2.setReuseAddress(true); in test_setReuseAddressZ()
813theSocket2.bind(new InetSocketAddress(InetAddress.getLocalHost(), theSocket1.getLocalPort())); in test_setReuseAddressZ()
818 if (theSocket2 != null) { in test_setReuseAddressZ()
[all …]
DMulticastSocketTest.java860 MulticastSocket theSocket2 = new MulticastSocket(null); in setReuseAddressZ() local
861 theSocket2.setReuseAddress(false); in setReuseAddressZ()
867 theSocket2.bind(addr); in setReuseAddressZ()
873 theSocket2.close(); in setReuseAddressZ()
877 theSocket2 = new MulticastSocket(null); in setReuseAddressZ()
879 theSocket2.setReuseAddress(true); in setReuseAddressZ()
883 theSocket2.bind(addr); in setReuseAddressZ()
886 theSocket2.close(); in setReuseAddressZ()
890 theSocket2 = new MulticastSocket(null); in setReuseAddressZ()
894 theSocket2.bind(addr); in setReuseAddressZ()
[all …]
DServerSocketTest.java450 ServerSocket theSocket2 = new ServerSocket(); in test_bindLjava_net_SocketAddress() local
455 theSocket2.bind(localAddress); in test_bindLjava_net_SocketAddress()
460 theSocket2.close(); in test_bindLjava_net_SocketAddress()
533 ServerSocket theSocket2 = new ServerSocket(); in test_bindLjava_net_SocketAddressI() local
538 theSocket2.bind(inuseAddress, 5); in test_bindLjava_net_SocketAddressI()
544 theSocket2.close(); in test_bindLjava_net_SocketAddressI()
DSocketTest.java220 Socket theSocket2 = new Socket(); in test_bindLjava_net_SocketAddress() local
222 theSocket2.bind(theSocket.getLocalSocketAddress()); in test_bindLjava_net_SocketAddress()
228 theSocket2.close(); in test_bindLjava_net_SocketAddress()
1463 Socket theSocket2 = new Socket(); in test_setReuseAddressZ() local
1464 theSocket2.setReuseAddress(false); in test_setReuseAddressZ()
1472 theSocket2.bind(localAddress1); in test_setReuseAddressZ()
1474 theSocket2.close(); in test_setReuseAddressZ()
/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTest.java867 Socket theSocket2 = new Socket(); in test_bindLjava_net_SocketAddress() local
870 theSocket2.bind(theSocket.getLocalSocketAddress()); in test_bindLjava_net_SocketAddress()
875 theSocket2.close(); in test_bindLjava_net_SocketAddress()
1410 Socket theSocket2 = null; in test_setReuseAddressZ() local
1413 theSocket2 = new Socket(); in test_setReuseAddressZ()
1414 theSocket2.setReuseAddress(false); in test_setReuseAddressZ()
1415 theSocket2.bind(theOtherLocalAddress); in test_setReuseAddressZ()
1430 theSocket2.close(); in test_setReuseAddressZ()
1439 theSocket2 = new Socket(); in test_setReuseAddressZ()
1440 theSocket2.setReuseAddress(true); in test_setReuseAddressZ()
[all …]