Home
last modified time | relevance | path

Searched refs:bind (Results 1 – 25 of 94) 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.java56 ssc.socket().bind(null); in testNonBlockingAccept()
84 ssc.socket().bind(new InetSocketAddress("unresolvedname", 31415)); in bind_unresolvedAddress()
98 ssc.socket().bind(null); in bind_nullBindsToAll()
170 ssc.socket().bind(new InetSocketAddress(InetAddress.getLoopbackAddress(), 0), 5); in bind_loopback()
214 ssc.bind(new InetSocketAddress(InetAddress.getLoopbackAddress(), 0)); in bind_socketAddress()
220 ssc.bind(new InetSocketAddress(InetAddress.getLoopbackAddress(), in bind_socketAddress()
228 ssc1.bind(new InetSocketAddress("1.1.1.1.1.1.1", 0)); in bind_socketAddress()
235 ssc.bind(new InetSocketAddress("1.1.1.1.1.1.1", 0)); in 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 …]
/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()
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 {}
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()
/libcore/ojluni/src/main/java/java/net/
DServerSocket.java237 bind(new InetSocketAddress(bindAddr, port), backlog); in ServerSocket()
330 public void bind(SocketAddress endpoint) throws IOException { in bind() method in ServerSocket
331 bind(endpoint, 50); in bind()
359 public void bind(SocketAddress endpoint, int backlog) throws IOException { in bind() method in ServerSocket
377 getImpl().bind(epoint.getAddress(), epoint.getPort()); in bind()
DDatagramSocket.java154 bind(new InetSocketAddress(0)); in connectInternal()
262 bind(bindaddr); in DatagramSocket()
392 public synchronized void bind(SocketAddress addr) throws SocketException { in bind() method in DatagramSocket
412 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.java264 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); in test_getLocalAddress()
679 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_getLocalSocketAddress()
686 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); in test_getLocalSocketAddress()
694 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); in test_getLocalSocketAddress()
716 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); in test_getRemoteSocketAddress()
760 theSocket.bind(null); in test_isBound()
825 theSocket.bind(new InetSocketAddress(InetAddress in test_bindLjava_net_SocketAddress()
836 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), in test_bindLjava_net_SocketAddress()
858 theSocket.bind(null); in test_bindLjava_net_SocketAddress()
869 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/ojluni/annotations/mmodule/java/net/
DServerSocket.annotated.java43 public void bind(java.net.SocketAddress endpoint) throws java.io.IOException { throw new RuntimeExc… in bind() method in ServerSocket
45 public void bind(java.net.SocketAddress endpoint, int backlog) throws java.io.IOException { throw n… in bind() method in ServerSocket
/libcore/ojluni/annotations/hiddenapi/java/net/
DServerSocket.java70 public void bind(java.net.SocketAddress endpoint) throws java.io.IOException { in bind() method in ServerSocket
74 public void bind(java.net.SocketAddress endpoint, int backlog) throws java.io.IOException { in bind() method in ServerSocket
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java177 Os.bind(serverFd, address); in checkUnixDomainSocket()
319 Os.bind(serverFd, loopback, 0); in checkByteBufferPositions_sendto_recvfrom()
407 Os.bind(socket, addr); in expectBindException()
441 Os.bind(socket, addr); in expectBindConnectSendtoSuccess()
493 Os.bind(socket, addr); in expectBindConnectSendtoErrno()
580 Os.bind(s, myaddr); in testUnknownSocketAddressSubclass()
611 Os.bind(nlSocket, new NetlinkSocketAddress()); in test_NetlinkSocket()
637 Os.bind(fd, addr); in test_PacketSocketAddress()
742 Os.bind(serverFd, serverAddr);
798 Os.bind(recvFd, loopback, 0);
[all …]

1234