Home
last modified time | relevance | path

Searched refs:bind (Results 1 – 25 of 52) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DServerSocketTest.java386 theSocket.bind(theAddress); in test_bindLjava_net_SocketAddress()
416 theSocket.bind(null); in test_bindLjava_net_SocketAddress()
424 theSocket.bind(theAddress); in test_bindLjava_net_SocketAddress()
426 theSocket2.bind(localAddress); in test_bindLjava_net_SocketAddress()
437 theSocket.bind(new InetSocketAddress(InetAddress in test_bindLjava_net_SocketAddress()
449 theSocket.bind(new mySocketAddress()); in test_bindLjava_net_SocketAddress()
470 theSocket.bind(theAddress, 5); in test_bindLjava_net_SocketAddressI()
499 theSocket.bind(null, 5); in test_bindLjava_net_SocketAddressI()
507 theSocket.bind(theAddress, 5); in test_bindLjava_net_SocketAddressI()
509 theSocket2.bind(inuseAddress, 5); in test_bindLjava_net_SocketAddressI()
[all …]
DSocketTest.java165 theSocket.bind(bogusAddress); in test_bindLjava_net_SocketAddress()
174 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_bindLjava_net_SocketAddress()
188 server.bind(theAddress); in test_bindLjava_net_SocketAddress()
206 theSocket.bind(null); in test_bindLjava_net_SocketAddress()
216 theSocket.bind(theAddress); in test_bindLjava_net_SocketAddress()
220 theSocket2.bind(theSocket.getLocalSocketAddress()); in test_bindLjava_net_SocketAddress()
231 theSocket.bind(new UnsupportedSocketAddress()); in test_bindLjava_net_SocketAddress()
250 socket.bind(new InetSocketAddress(address, 0)); in test_bindLjava_net_SocketAddress_Proxy()
715 client.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); in test_getLocalAddress()
758 client.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_getLocalSocketAddress()
[all …]
DDatagramSocketTest.java407 protected void bind(int arg0, InetAddress arg1) in bind() method in DatagramSocketTest.TestDatagramSocketImpl
616 theSocket.bind(null); in test_bindLjava_net_SocketAddress_null()
640 theSocket.bind(new mySocketAddress()); in test_bindLjava_net_SocketAddress_unsupported_address_type()
670 theSocket.bind(theLocalAddress); in test_isBound()
713 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_getRemoteSocketAddress()
730 theSocket.bind(localAddress); in test_getLocalSocketAddress_late_bind()
766 theSocket1.bind(theAddress); in test_setReuseAddressZ()
767 … theSocket2.bind(new InetSocketAddress(InetAddress.getLocalHost(), theSocket1.getLocalPort())); in test_setReuseAddressZ()
784 theSocket1.bind(theAddress); in test_setReuseAddressZ()
785 … theSocket2.bind(new InetSocketAddress(InetAddress.getLocalHost(), theSocket1.getLocalPort())); in test_setReuseAddressZ()
[all …]
DMulticastSocketTest.java765 ms.bind(null); in test_ConstructorLjava_net_SocketAddress()
866 theSocket1.bind(addr); in test_setReuseAddressZ()
869 theSocket2.bind(addr); in test_setReuseAddressZ()
883 theSocket1.bind(addr); in test_setReuseAddressZ()
885 theSocket2.bind(addr); in test_setReuseAddressZ()
894 theSocket1.bind(addr); in test_setReuseAddressZ()
896 theSocket2.bind(addr); in test_setReuseAddressZ()
DSocketImplTest.java92 protected void bind(InetAddress address, int port) throws IOException { in bind() method in SocketImplTest.MockSocketImpl
DDatagramSocketImplTest.java60 protected void bind(int port, InetAddress addr) throws SocketException { in bind() method in MockDatagramSocketImpl
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DServerSocketChannelTest.java119 ssc.socket().bind(null); in test_bind_null()
131 portHog.socket().bind(null); in test_bind_failure()
136 ssc.socket().bind(portHog.socket().getLocalSocketAddress()); in test_bind_failure()
150 ssc.socket().bind(null); in test_bind_closed()
161 portPickingChannel.socket().bind(null); in test_bind_explicitPort()
171 ssc.socket().bind(bindAddress); in test_bind_explicitPort()
189 ssc.socket().bind(bindAddr); in test_bind_socketSync()
208 ssc.socket().bind(bindAddr); in test_bind_socketSyncAfterBind()
233 ssc.socket().bind(bindAddr); in test_getLocalSocketAddress_afterClose()
372 serverChannel.socket().bind(null); in testAccept_Block_NoConnect()
[all …]
DSocketChannelTest.java159 channel1.socket().bind(null); in testBind_Null()
171 channel1.socket().bind(localAddr1); in testBind_Failure()
181 channel1.socket().bind(null); in testBind_Closed()
190 portPickingChannel.socket().bind(null); in testBind_explicitPort()
200 channel1.socket().bind(bindAddress); in testBind_explicitPort()
212 sc.socket().bind(bindAddr); in test_getLocalSocketAddress_afterClose()
494 socket.bind(new InetSocketAddress("127.0.0.1", 0)); in testSocket_bind()
594 s.bind(localAddr2); in assertSocketAction_Block_BeforeConnect()
617 s.bind(localAddr2); in assertSocketAction_NonBlock_BeforeConnect()
624 s.bind(localAddr2); in assertSocketAction_NonBlock_BeforeConnect()
[all …]
/libcore/luni/src/main/java/java/net/
DServerSocket.java105 impl.bind(addr, port); in ServerSocket()
294 public void bind(SocketAddress localAddr) throws IOException { in bind() method in ServerSocket
295 bind(localAddr, DEFAULT_BACKLOG); in bind()
311 public void bind(SocketAddress localAddr, int backlog) throws IOException { in bind() method in ServerSocket
335 impl.bind(addr, port); in bind()
DDatagramSocket.java159 impl.bind(aPort, addr); in createSocket()
428 bind(localAddr); in DatagramSocket()
446 impl.bind(0, Inet4Address.ANY); in ensureBound()
464 public void bind(SocketAddress localAddr) throws SocketException { in bind() method in DatagramSocket
484 impl.bind(localPort, addr); in bind()
DDatagramSocketImpl.java57 protected abstract void bind(int port, InetAddress addr) throws SocketException; in bind() method in DatagramSocketImpl
DSocketImpl.java87 protected abstract void bind(InetAddress address, int port) throws IOException; in bind() method in SocketImpl
DSocket.java586 impl.bind(addr, localPort); in startupSocket()
765 public void bind(SocketAddress localAddr) throws IOException { in bind() method in Socket
790 impl.bind(addr, port); in bind()
878 impl.bind(Inet4Address.ANY, 0); in connect()
DPlainDatagramSocketImpl.java59 @Override public void bind(int port, InetAddress address) throws SocketException { in bind() method in PlainDatagramSocketImpl
60 IoBridge.bind(fd, address, port); in bind()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DServerSocketChannelTest.java38 ssc.socket().bind(null); in testNonBlockingAccept()
69 ssc.socket().bind(new InetSocketAddress("unresolvedname", 31415)); in test_bind_unresolvedAddress()
82 ssc.socket().bind(null); in test_bind_nullBindsToAll()
108 ssc.socket().bind(new InetSocketAddress(InetAddress.getLoopbackAddress(), 0)); in test_bind_loopback()
DDatagramChannelTest.java61 dc.socket().bind(null); in testNonBlockingRecv()
94 dc.socket().bind(new InetSocketAddress("unresolvedname", 31415)); in test_bind_unresolvedAddress()
115 dc.socket().bind(new InetSocketAddress(bindAddress, 0)); in test_bind_any()
147 dc.socket().bind(new InetSocketAddress(bindAddress, 0)); in test_bind()
DSocketChannelTest.java167 sc.socket().bind(new InetSocketAddress("unresolvedname", 31415)); in test_bind_unresolvedAddress()
189 sc.socket().bind(bindAddr); in test_bind_socketStateSync()
213 sc.socket().bind(bindAddr); in test_bind_socketObjectCreationAfterBind()
DSelectorTest.java41 ssc.socket().bind(null); in testNonBlockingConnect_immediate()
155 ssc.socket().bind(null); in test_57456()
DOldServerSocketChannelTest.java81 gotSocket.bind(null); in test_accept_Block_NoConnect_interrupt()
/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTest.java254 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); in test_getLocalAddress()
674 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_getLocalSocketAddress()
681 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); in test_getLocalSocketAddress()
689 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); in test_getLocalSocketAddress()
711 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_getRemoteSocketAddress()
755 theSocket.bind(null); in test_isBound()
824 theSocket.bind(new InetSocketAddress(InetAddress in test_bindLjava_net_SocketAddress()
835 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), in test_bindLjava_net_SocketAddress()
857 theSocket.bind(null); in test_bindLjava_net_SocketAddress()
868 theSocket.bind(null); in test_bindLjava_net_SocketAddress()
[all …]
DOldAndroidDatagramTest.java194 s.bind(new InetSocketAddress(8888)); in test_54072_DatagramSocket()
204 s.bind(new InetSocketAddress(8888)); in test_54072_DatagramChannel()
DOldServerSocketTest.java59 theSocket.bind(theAddress); in performancePreferenceTest()
183 ss2.bind(new InetSocketAddress("127.0.0.1", 4343)); in test_LocalPort()
352 protected void bind(InetAddress arg0, int arg1) throws IOException { in bind() method in OldServerSocketTest.MockSocketImpl
DSocketTest.java56 s.bind(new InetSocketAddress("localhost", 0)); in test_getLocalAddress_after_close()
93 ssc.socket().bind(listenAddr, 0); in checkSocketLocalAndRemoteAddresses()
184 @Override protected void bind(InetAddress arg0, int arg1) throws IOException { } in test_SocketOptions_setOption() method in SocketTest.MySocketImpl
341 s.bind(new InetSocketAddress(Inet4Address.getLocalHost(), 0)); in testStateAfterClose()
DServerSocketTest.java66 ss.bind(new InetSocketAddress(Inet4Address.getLocalHost(), 0)); in testStateAfterClose()
/libcore/luni/src/test/java/libcore/javax/net/
DServerSocketFactoryTest.java36 serverSocket.bind(new InetSocketAddress(0)); in testCreateServerSocket()

123