/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
H A D | ServerSocketChannelTest.java | 111 // Tests for bind() 119 ssc.socket().bind(null); 131 portHog.socket().bind(null); 136 ssc.socket().bind(portHog.socket().getLocalSocketAddress()); 150 ssc.socket().bind(null); 161 portPickingChannel.socket().bind(null); 168 // close() and bind(). 171 ssc.socket().bind(bindAddress); 189 ssc.socket().bind(bindAddr); 208 ssc.socket().bind(bindAdd [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | ServerSocketTest.java | 375 * java.net.ServerSocket#bind(java.net.SocketAddress) 382 // create servers socket, bind it and then validate basic state 386 theSocket.bind(theAddress); 413 // validate we can specify null for the address in the bind and all 416 theSocket.bind(null); 424 theSocket.bind(theAddress); 426 theSocket2.bind(localAddress); 433 // validate we get io address when we try to bind to address we 434 // cannot bind to 437 theSocket.bind(ne 894 protected void bind(InetAddress arg0, int arg1) throws IOException { method in class:ServerSocketTest.MockSocketImpl [all...] |
H A D | SocketTest.java | 150 * java.net.Socket#bind(java.net.SocketAddress) 160 // Address we cannot bind to 165 theSocket.bind(bogusAddress); 172 // Now create a socket that is not bound and then bind it 174 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); 179 assertEquals("Local address not correct after bind", 188 server.bind(theAddress); 206 theSocket.bind(null); 216 theSocket.bind(theAddress); 220 theSocket2.bind(theSocke [all...] |
H A D | DatagramSocketImplTest.java | 60 protected void bind(int port, InetAddress addr) throws SocketException { method in class:MockDatagramSocketImpl
|
H A D | SocketImplTest.java | 92 protected void bind(InetAddress address, int port) throws IOException { method in class:SocketImplTest.MockSocketImpl
|
H A D | DatagramSocketTest.java | 407 protected void bind(int arg0, InetAddress arg1) method in class:DatagramSocketTest.TestDatagramSocketImpl 616 theSocket.bind(null); 640 theSocket.bind(new mySocketAddress()); 660 // connect causes implicit bind 666 // now test when we bind explicitely 670 theSocket.bind(theLocalAddress); 713 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); 728 // now bind the socket and make sure we get the right answer 730 theSocket.bind(localAddress); 766 theSocket1.bind(theAddres [all...] |
H A D | MulticastSocketTest.java | 765 ms.bind(null); 866 theSocket1.bind(addr); 869 theSocket2.bind(addr); 870 fail("No exception when trying to connect to do duplicate socket bind with re-useaddr" 883 theSocket1.bind(addr); 885 theSocket2.bind(addr); 894 theSocket1.bind(addr); 896 theSocket2.bind(addr);
|
/libcore/luni/src/main/java/java/net/ |
H A D | ServerSocket.java | 105 impl.bind(addr, port); 287 * the local address and port to bind on. 294 public void bind(SocketAddress localAddr) throws IOException { method in class:ServerSocket 295 bind(localAddr, DEFAULT_BACKLOG); 303 * @param localAddr the local machine address and port to bind on. 311 public void bind(SocketAddress localAddr, int backlog) throws IOException { method in class:ServerSocket 335 impl.bind(addr, port);
|
H A D | DatagramSocketImpl.java | 50 * the port on the localhost to bind. 52 * the address on the multihomed localhost to bind. 57 protected abstract void bind(int port, InetAddress addr) throws SocketException; method in class:DatagramSocketImpl 273 * Initialize the bind() state.
|
H A D | SocketImpl.java | 81 * the local machine address to bind this socket to. 83 * the port on the local machine to bind this socket to. 87 protected abstract void bind(InetAddress address, int port) throws IOException; method in class:SocketImpl 299 * Initialize the bind() state.
|
H A D | DatagramSocket.java | 74 * the port to bind on the localhost. 89 * the port to bind on the localhost. 91 * the address to bind on the localhost. 159 impl.bind(aPort, addr); 409 * the local machine address and port to bind to. 428 bind(localAddr); 446 impl.bind(0, Inet4Address.ANY); 457 * the local machine address and port to bind on. 464 public void bind(SocketAddress localAddr) throws SocketException { method in class:DatagramSocket 484 impl.bind(localPor [all...] |
H A D | Socket.java | 96 * the address on the local host to bind to. 98 * the port on the local host to bind to. 168 * the address on the local host to bind to. 170 * the port on the local host to bind to. 240 * the address on the local host to bind to. 242 * the port on the local host to bind to. 565 * the address on the local machine to bind. 567 * the port on the local machine to bind. 569 * thrown if an error occurs during the bind or connect 586 impl.bind(add 765 public void bind(SocketAddress localAddr) throws IOException { method in class:Socket [all...] |
H A D | PlainDatagramSocketImpl.java | 59 @Override public void bind(int port, InetAddress address) throws SocketException { method in class:PlainDatagramSocketImpl 60 IoBridge.bind(fd, address, port);
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
H A D | DatagramChannelTest.java | 61 dc.socket().bind(null); 94 dc.socket().bind(new InetSocketAddress("unresolvedname", 31415)); 115 dc.socket().bind(new InetSocketAddress(bindAddress, 0)); 147 dc.socket().bind(new InetSocketAddress(bindAddress, 0));
|
H A D | ServerSocketChannelTest.java | 38 ssc.socket().bind(null); 69 ssc.socket().bind(new InetSocketAddress("unresolvedname", 31415)); 82 ssc.socket().bind(null); 108 ssc.socket().bind(new InetSocketAddress(InetAddress.getLoopbackAddress(), 0));
|
H A D | SelectorTest.java | 41 ssc.socket().bind(null); 155 ssc.socket().bind(null);
|
H A D | OldServerSocketChannelTest.java | 81 gotSocket.bind(null);
|
H A D | SocketChannelTest.java | 167 sc.socket().bind(new InetSocketAddress("unresolvedname", 31415)); 189 sc.socket().bind(bindAddr); 206 * the Socket object is requested/created after bind(). 213 sc.socket().bind(bindAddr); 215 // Socket object creation after bind().
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | ServerSocketTest.java | 66 ss.bind(new InetSocketAddress(Inet4Address.getLocalHost(), 0));
|
H A D | OldAndroidDatagramTest.java | 194 s.bind(new InetSocketAddress(8888)); 204 s.bind(new InetSocketAddress(8888));
|
H A D | OldSocketTest.java | 254 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); 673 // now bind the socket and make sure we get the right answer 674 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); 681 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); 689 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); 711 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); 751 // now test when we bind explicitly 755 theSocket.bind(null); 821 // Address we cannot bind to 824 theSocket.bind(ne 2201 protected void bind(InetAddress arg0, int arg1) throws IOException { method in class:OldSocketTest.MockSocketImpl [all...] |
H A D | OldServerSocketTest.java | 59 theSocket.bind(theAddress); 183 ss2.bind(new InetSocketAddress("127.0.0.1", 4343)); 352 protected void bind(InetAddress arg0, int arg1) throws IOException { method in class:OldServerSocketTest.MockSocketImpl
|
H A D | OldSocketImplFactoryTest.java | 129 protected void bind(InetAddress arg0, int arg1) throws IOException { method in class:OldSocketImplFactoryTest.MockSocketImpl
|
H A D | SocketTest.java | 56 s.bind(new InetSocketAddress("localhost", 0)); 93 ssc.socket().bind(listenAddr, 0); 154 // As per docs and RI - server socket local address methods continue to return the bind() 159 // bind() and after close(), but the port will be the same as it was before close(). 184 @Override protected void bind(InetAddress arg0, int arg1) throws IOException { } 341 s.bind(new InetSocketAddress(Inet4Address.getLocalHost(), 0));
|
/libcore/luni/src/test/java/libcore/javax/net/ |
H A D | ServerSocketFactoryTest.java | 36 serverSocket.bind(new InetSocketAddress(0));
|