Home
last modified time | relevance | path

Searched refs:bind (Results 1 – 25 of 89) 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 …]
DMulticastSocketTest.java792 ms.bind(null); in test_ConstructorLjava_net_SocketAddress()
893 theSocket1.bind(addr); in test_setReuseAddressZ()
896 theSocket2.bind(addr); in test_setReuseAddressZ()
910 theSocket1.bind(addr); in test_setReuseAddressZ()
912 theSocket2.bind(addr); in test_setReuseAddressZ()
921 theSocket1.bind(addr); in test_setReuseAddressZ()
923 theSocket2.bind(addr); in test_setReuseAddressZ()
/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 …]
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
/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()
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/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/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/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.java110 Os.bind(serverFd, address); in checkUnixDomainSocket()
250 Os.bind(serverFd, loopback, 0); in checkByteBufferPositions_sendto_recvfrom()
341 Os.bind(socket, addr); in expectBindException()
375 Os.bind(socket, addr); in expectBindConnectSendtoSuccess()
426 Os.bind(socket, addr); in expectBindConnectSendtoErrno()
511 Os.bind(s, myaddr); in testUnknownSocketAddressSubclass()
540 Os.bind(nlSocket, new NetlinkSocketAddress()); in test_NetlinkSocket()
557 Os.bind(fd, addr); in test_PacketSocketAddress()
583 Os.bind(recvFd, loopback, 0); in checkSendToSocketAddress()
609 Os.bind(fd, InetAddress.getByName("::"), 0); in test_socketFamilies()
[all …]

1234