Searched refs:setReuseAddress (Results 1 - 19 of 19) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DTestServerSocketInit.java27 serverSocket.setReuseAddress(true);
H A DServerSocketTest.java697 serverSocket.setReuseAddress(false);
708 // setReuseAddress to false. On windows platforms the bind is
714 serverSocket.setReuseAddress(false);
716 fail("No exception when setReuseAddress is false and we bind:" + theAddress.toString());
725 serverSocket.setReuseAddress(true);
736 // setReuseAddress to true
739 serverSocket.setReuseAddress(true);
742 fail("Unexpected exception when setReuseAddress is true and we bind:"
766 fail("Unexpected exception when setReuseAddress is the default case and we bind:"
775 theSocket.setReuseAddress(tru
[all...]
H A DDatagramSocketTest.java765 theSocket1.setReuseAddress(false);
766 theSocket2.setReuseAddress(false);
783 theSocket1.setReuseAddress(true);
784 theSocket2.setReuseAddress(true);
814 theSocket1.setReuseAddress(true);
823 theSocket.setReuseAddress(true);
825 theSocket.setReuseAddress(false);
H A DMulticastSocketTest.java880 theSocket1.setReuseAddress(false);
883 theSocket2.setReuseAddress(false);
900 theSocket1.setReuseAddress(true);
901 theSocket2.setReuseAddress(true);
H A DSocketTest.java942 theSocket.setReuseAddress(true);
944 theSocket.setReuseAddress(false);
1449 theSocket.setReuseAddress(false);
1455 theSocket2.setReuseAddress(false);
/libcore/luni/src/main/java/java/net/
H A DMulticastSocket.java44 setReuseAddress(true);
55 setReuseAddress(true);
68 setReuseAddress(true);
H A DServerSocket.java393 public void setReuseAddress(boolean reuse) throws SocketException { method in class:ServerSocket
H A DDatagramSocket.java614 public void setReuseAddress(boolean reuse) throws SocketException { method in class:DatagramSocket
H A DSocket.java930 public void setReuseAddress(boolean reuse) throws SocketException { method in class:Socket
/libcore/luni/src/test/java/libcore/java/net/
H A DServerSocketTest.java28 ss.setReuseAddress(true);
H A DOldSocketTest.java1486 theSocket.setReuseAddress(false);
1492 theSocket2.setReuseAddress(false);
1502 fail("No exception when setReuseAddress is false and we bind:"
1515 theSocket.setReuseAddress(true);
1518 theSocket2.setReuseAddress(true);
1547 theSocket.setReuseAddress(true);
1559 theSocket.setReuseAddress(true);
1562 theSocket.setReuseAddress(false);
H A DOldServerSocketTest.java270 newSocket.setReuseAddress(true);
H A DSocketTest.java397 serverSocket.setReuseAddress(true);
H A DURLConnectionTest.java3013 @Override public void setReuseAddress(boolean reuse) throws SocketException { method in class:URLConnectionTest.DelegatingSSLSocket
3014 delegate.setReuseAddress(reuse);
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DSocketChannelTest.java56 ss.setReuseAddress(true);
/libcore/support/src/test/java/tests/http/
H A DMockWebServer.java179 serverSocket.setReuseAddress(true);
/libcore/support/src/test/java/tests/support/
H A DSupport_TestWebServer.java229 ss.setReuseAddress(true);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DSocketChannelTest.java199 channel1.socket().setReuseAddress(true);
1867 serversocket.setReuseAddress(true);
3715 socket.setReuseAddress(true);
H A DDatagramChannelTest.java2445 dc.socket().setReuseAddress(true);

Completed in 252 milliseconds