Searched refs:bind (Results 1 - 25 of 51) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DServerSocketChannelTest.java111 // 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 DServerSocketTest.java375 * 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 DSocketTest.java150 * 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 DDatagramSocketImplTest.java60 protected void bind(int port, InetAddress addr) throws SocketException { method in class:MockDatagramSocketImpl
H A DSocketImplTest.java92 protected void bind(InetAddress address, int port) throws IOException { method in class:SocketImplTest.MockSocketImpl
H A DDatagramSocketTest.java407 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 DMulticastSocketTest.java765 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 DServerSocket.java105 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 DDatagramSocketImpl.java50 * 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 DSocketImpl.java81 * 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 DDatagramSocket.java74 * 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 DSocket.java96 * 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 DPlainDatagramSocketImpl.java59 @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 DDatagramChannelTest.java61 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 DServerSocketChannelTest.java38 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 DSelectorTest.java41 ssc.socket().bind(null);
155 ssc.socket().bind(null);
H A DOldServerSocketChannelTest.java81 gotSocket.bind(null);
H A DSocketChannelTest.java167 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 DServerSocketTest.java66 ss.bind(new InetSocketAddress(Inet4Address.getLocalHost(), 0));
H A DOldAndroidDatagramTest.java194 s.bind(new InetSocketAddress(8888));
204 s.bind(new InetSocketAddress(8888));
H A DOldSocketTest.java254 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 DOldServerSocketTest.java59 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 DOldSocketImplFactoryTest.java129 protected void bind(InetAddress arg0, int arg1) throws IOException { method in class:OldSocketImplFactoryTest.MockSocketImpl
H A DSocketTest.java56 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 DServerSocketFactoryTest.java36 serverSocket.bind(new InetSocketAddress(0));

Completed in 179 milliseconds

123