Home
last modified time | relevance | path

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

1234

/libcore/luni/src/test/java/libcore/java/nio/channels/
DAsynchronousServerSocketChannelTest.java56 assc.bind(new InetSocketAddress(0)); in test_bind()
59 assc.bind(new InetSocketAddress(0)); in test_bind()
71 assc.bind(null); in test_bind_null()
74 assc.bind(null); in test_bind_null()
85 assc.bind(new InetSocketAddress("unresolvedname", 31415)); in test_bind_unresolvedAddress()
98 assc.bind(ss.getLocalSocketAddress()); in test_bind_used()
109 assc.bind(new InetSocketAddress(0)); in test_futureAccept()
131 assc.bind(new InetSocketAddress(0)); in test_completionHandlerAccept()
158 assc.bind(new InetSocketAddress(0)); in test_completionHandlerAccept_attachment()
195 assc.bind(new InetSocketAddress(0)); in test_completionHandlerAccept_npe()
[all …]
DDatagramChannelTest.java75 dc.socket().bind(null); in testNonBlockingRecv()
108 dc.socket().bind(new InetSocketAddress("unresolvedname", 31415)); in test_bind_unresolvedAddress()
129 dc.socket().bind(new InetSocketAddress(bindAddress, 0)); in test_bind_any()
161 dc.socket().bind(new InetSocketAddress(bindAddress, 0)); in test_bind()
199 channel.bind(socketAddress); in test_bind()
205 channel.bind(socketAddress); in test_bind()
213 dc.bind(socketAddress); in test_bind()
220 channel.bind(socketAddress); in test_bind()
229 serverChannel.bind(socketAddress); in test_getRemoteAddress()
243 channel.bind(new InetSocketAddress(Inet4Address.LOOPBACK, 0)); in test_open$java_net_ProtocolFamily()
[all …]
DServerSocketChannelTest.java41 ssc.socket().bind(null); in testNonBlockingAccept()
72 ssc.socket().bind(new InetSocketAddress("unresolvedname", 31415)); in test_bind_unresolvedAddress()
85 ssc.socket().bind(null); in test_bind_nullBindsToAll()
111 ssc.socket().bind(new InetSocketAddress(InetAddress.getLoopbackAddress(), 0)); in test_bind_loopback()
144 ssc.bind(new InetSocketAddress(InetAddress.getLoopbackAddress(), 0)); in test_bind$SocketAddress()
150 ssc.bind(new InetSocketAddress(InetAddress.getLoopbackAddress(), in test_bind$SocketAddress()
158 ssc1.bind(new InetSocketAddress("1.1.1.1.1.1.1", 0)); in test_bind$SocketAddress()
165 ssc.bind(new InetSocketAddress("1.1.1.1.1.1.1", 0)); in test_bind$SocketAddress()
DSocketChannelTest.java169 sc.socket().bind(new InetSocketAddress("unresolvedname", 31415)); in test_bind_unresolvedAddress()
191 sc.socket().bind(bindAddr); in test_bind_socketStateSync()
215 sc.socket().bind(bindAddr); in test_bind_socketObjectCreationAfterBind()
311 sc.bind(socketAddress); in test_bind()
317 sc.bind(socketAddress); in test_bind()
325 sc1.bind(socketAddress); in test_bind()
333 sc.bind(socketAddress); in test_bind()
DMembershipKeyTest.java46 .bind(new InetSocketAddress(Inet4Address.ANY, PORT)); in init()
108 .bind(new InetSocketAddress(Inet4Address.LOOPBACK, 0)) in check_drop()
174 .bind(new InetSocketAddress(Inet4Address.LOOPBACK, 0)) in test_blockWithJoinWithoutSource()
223 .bind(new InetSocketAddress(Inet4Address.LOOPBACK, 0)) in test_unblockWithJoinWithoutSource()
DSelectorTest.java40 ssc.socket().bind(null); in testNonBlockingConnect_immediate()
117 ssc.socket().bind(null); in test_57456()
158 ssc.bind(null); in test28318596()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DServerSocketTest.java415 theSocket.bind(theAddress); in test_bindLjava_net_SocketAddress()
445 theSocket.bind(null); in test_bindLjava_net_SocketAddress()
453 theSocket.bind(theAddress); in test_bindLjava_net_SocketAddress()
455 theSocket2.bind(localAddress); in test_bindLjava_net_SocketAddress()
466 theSocket.bind(new InetSocketAddress(InetAddress in test_bindLjava_net_SocketAddress()
478 theSocket.bind(new mySocketAddress()); in test_bindLjava_net_SocketAddress()
499 theSocket.bind(theAddress, 5); in test_bindLjava_net_SocketAddressI()
528 theSocket.bind(null, 5); in test_bindLjava_net_SocketAddressI()
536 theSocket.bind(theAddress, 5); in test_bindLjava_net_SocketAddressI()
538 theSocket2.bind(inuseAddress, 5); in test_bindLjava_net_SocketAddressI()
[all …]
DSocketTest.java167 theSocket.bind(bogusAddress); in test_bindLjava_net_SocketAddress()
176 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_bindLjava_net_SocketAddress()
190 server.bind(theAddress); in test_bindLjava_net_SocketAddress()
208 theSocket.bind(null); in test_bindLjava_net_SocketAddress()
218 theSocket.bind(theAddress); in test_bindLjava_net_SocketAddress()
222 theSocket2.bind(theSocket.getLocalSocketAddress()); in test_bindLjava_net_SocketAddress()
233 theSocket.bind(new UnsupportedSocketAddress()); in test_bindLjava_net_SocketAddress()
252 socket.bind(new InetSocketAddress(address, 0)); in test_bindLjava_net_SocketAddress_Proxy()
721 client.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); in test_getLocalAddress()
759 client.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_getLocalSocketAddress()
[all …]
DDatagramSocketTest.java430 protected void bind(int arg0, InetAddress arg1) in bind() method in DatagramSocketTest.TestDatagramSocketImpl
641 theSocket.bind(null); in test_bindLjava_net_SocketAddress_null()
665 theSocket.bind(new mySocketAddress()); in test_bindLjava_net_SocketAddress_unsupported_address_type()
695 theSocket.bind(theLocalAddress); in test_isBound()
739 theSocket.bind(new InetSocketAddress(Inet6Address.LOOPBACK, 0)); in test_getRemoteSocketAddress()
757 theSocket.bind(localAddress); in test_getLocalSocketAddress_late_bind()
794 theSocket1.bind(theAddress); in test_setReuseAddressZ()
795 … theSocket2.bind(new InetSocketAddress(InetAddress.getLocalHost(), theSocket1.getLocalPort())); in test_setReuseAddressZ()
812 theSocket1.bind(theAddress); in test_setReuseAddressZ()
813 … theSocket2.bind(new InetSocketAddress(InetAddress.getLocalHost(), theSocket1.getLocalPort())); in test_setReuseAddressZ()
[all …]
/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.java162 channel1.socket().bind(null); in testBind_Null()
174 channel1.socket().bind(localAddr1); in testBind_Failure()
184 channel1.socket().bind(null); in testBind_Closed()
193 portPickingChannel.socket().bind(null); in testBind_explicitPort()
203 channel1.socket().bind(bindAddress); in testBind_explicitPort()
215 sc.socket().bind(bindAddr); in test_getLocalSocketAddress_afterClose()
497 socket.bind(new InetSocketAddress("127.0.0.1", 0)); in testSocket_bind()
597 s.bind(localAddr2); in assertSocketAction_Block_BeforeConnect()
620 s.bind(localAddr2); in assertSocketAction_NonBlock_BeforeConnect()
627 s.bind(localAddr2); in assertSocketAction_NonBlock_BeforeConnect()
[all …]
DMockServerSocketChannel.java60 public ServerSocketChannel bind(SocketAddress local, int backlog) { in bind() method in MockServerSocketChannel
/libcore/ojluni/src/main/java/java/nio/channels/
DServerSocketChannel.java154 public final ServerSocketChannel bind(SocketAddress local) in bind() method in ServerSocketChannel
157 return bind(local, 0); in bind()
198 public abstract ServerSocketChannel bind(SocketAddress local, int backlog) in bind() method in ServerSocketChannel
DAsynchronousServerSocketChannel.java190 public final AsynchronousServerSocketChannel bind(SocketAddress local) in bind() method in AsynchronousServerSocketChannel
193 return bind(local, 0); in bind()
231 public abstract AsynchronousServerSocketChannel bind(SocketAddress local, int backlog) in bind() method in AsynchronousServerSocketChannel
DNetworkChannel.java87 NetworkChannel bind(SocketAddress local) throws IOException; in bind() method
/libcore/ojluni/src/main/java/sun/nio/ch/
DServerSocketAdaptor.java66 public void bind(SocketAddress local) throws IOException { in bind() method in ServerSocketAdaptor
67 bind(local, 50); in bind()
70 public void bind(SocketAddress local, int backlog) throws IOException { in bind() method in ServerSocketAdaptor
74 ssc.bind(local, backlog); in bind()
DAsynchronousServerSocketChannelImpl.java147 public final AsynchronousServerSocketChannel bind(SocketAddress local, int backlog) in bind() method in AsynchronousServerSocketChannelImpl
162 Net.bind(fd, isa.getAddress(), isa.getPort()); in bind()
DDatagramSocketAdaptor.java87 public void bind(SocketAddress local) throws SocketException { in bind() method in DatagramSocketAdaptor
91 dc.bind(local); in bind()
380 protected void bind(int lport, InetAddress laddr) throws SocketException {}
/libcore/ojluni/src/main/java/java/net/
DServerSocket.java237 bind(new InetSocketAddress(bindAddr, port), backlog); in ServerSocket()
329 public void bind(SocketAddress endpoint) throws IOException { in bind() method in ServerSocket
330 bind(endpoint, 50); in bind()
358 public void bind(SocketAddress endpoint, int backlog) throws IOException { in bind() method in ServerSocket
376 getImpl().bind(epoint.getAddress(), epoint.getPort()); in bind()
DDatagramSocket.java153 bind(new InetSocketAddress(0)); in connectInternal()
261 bind(bindaddr); in DatagramSocket()
391 public synchronized void bind(SocketAddress addr) throws SocketException { in bind() method in DatagramSocket
411 getImpl().bind(port, iaddr); in bind()
719 bind(new InetSocketAddress(0)); in send()
759 bind(new InetSocketAddress(0)); in receive()
/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTest.java261 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); in test_getLocalAddress()
676 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_getLocalSocketAddress()
683 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); in test_getLocalSocketAddress()
691 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); in test_getLocalSocketAddress()
713 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_getRemoteSocketAddress()
757 theSocket.bind(null); in test_isBound()
822 theSocket.bind(new InetSocketAddress(InetAddress in test_bindLjava_net_SocketAddress()
833 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), in test_bindLjava_net_SocketAddress()
855 theSocket.bind(null); in test_bindLjava_net_SocketAddress()
866 theSocket.bind(null); in test_bindLjava_net_SocketAddress()
[all …]
DOldAndroidDatagramTest.java170 s.bind(new InetSocketAddress(8888)); in test_54072_DatagramSocket()
180 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()
343 protected void bind(InetAddress arg0, int arg1) throws IOException { in bind() method in OldServerSocketTest.MockSocketImpl
/libcore/luni/src/test/java/libcore/dalvik/system/
DSocketTaggingTest.java86 server.bind(null); in setUp()
110 ssc.bind(null); in testServerSocketChannel()
/libcore/luni/src/test/java/libcore/io/
DOsTest.java101 Libcore.os.bind(serverFd, address); in checkUnixDomainSocket()
240 Libcore.os.bind(serverFd, loopback, 0); in checkByteBufferPositions_sendto_recvfrom()
299 Libcore.os.bind(nlSocket, new NetlinkSocketAddress()); in test_NetlinkSocket()
316 Libcore.os.bind(fd, addr); in test_PacketSocketAddress()
342 Libcore.os.bind(recvFd, loopback, 0); in checkSendToSocketAddress()
368 Libcore.os.bind(fd, InetAddress.getByName("::"), 0); in test_socketFamilies()
373 Libcore.os.bind(fd, InetAddress.getByName("0.0.0.0"), 0); in test_socketFamilies()
378 Libcore.os.bind(fd, InetAddress.getByName("0.0.0.0"), 0); in test_socketFamilies()
382 Libcore.os.bind(fd, InetAddress.getByName("::"), 0); in test_socketFamilies()
447 Libcore.os.bind(mUdpSock, Inet4Address.ANY, 0); in test_Ipv4Fallback()
[all …]

1234