/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | DatagramSocketImplTest.java | 60 protected void bind(int port, InetAddress addr) throws SocketException { method in class:MockDatagramSocketImpl
|
H A D | SocketImplTest.java | 92 protected void bind(InetAddress address, int port) throws IOException { method in class:SocketImplTest.MockSocketImpl
|
H A D | ServerSocketTest.java | 375 * 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 D | DatagramSocketTest.java | 407 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); 767 theSocket1.bind(theAddres [all...] |
/libcore/luni/src/main/java/java/net/ |
H A D | DatagramSocketImpl.java | 50 * the port on the local host to bind to. 52 * the address on the multihomed local host to bind to. 57 protected abstract void bind(int port, InetAddress addr) throws SocketException; method in class:DatagramSocketImpl 273 * Initialize the bind() state.
|
H A D | PlainDatagramSocketImpl.java | 59 @Override public void bind(int port, InetAddress address) throws SocketException { method in class:PlainDatagramSocketImpl 60 IoBridge.bind(fd, address, port);
|
H A D | ServerSocket.java | 106 impl.bind(addr, port); 288 * the local address and port to bind on. 295 public void bind(SocketAddress localAddr) throws IOException { method in class:ServerSocket 296 bind(localAddr, DEFAULT_BACKLOG); 304 * @param localAddr the local machine address and port to bind on. 312 public void bind(SocketAddress localAddr, int backlog) throws IOException { method in class:ServerSocket 336 impl.bind(addr, port);
|
H A D | SocketImpl.java | 81 * 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 D | DatagramSocket.java | 74 * the port to bind on the local host. 89 * the port to bind on the local host. 91 * the address to bind on the local host. 159 impl.bind(aPort, addr); 409 * the local machine address and port to bind to. 428 bind(localAddr); 446 impl.bind(0, Inet6Address.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 D | PlainSocketImpl.java | 39 // For SOCKS support. A SOCKS bind() uses the last 131 @Override protected void bind(InetAddress address, int port) throws IOException { method in class:PlainSocketImpl 132 IoBridge.bind(fd, address, port); 274 // server during the bind. 343 * Perform an accept for a SOCKS bind. 387 // There must be a connection to an application host for the bind to work. 392 // Use the last connected address and port in the bind request.
|
H A D | Socket.java | 96 * 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. 242 * the address on the local host to bind to, or null. 244 * the port on the local host to bind to. 567 * the address on the local machine to bind. 569 * the port on the local machine to bind. 571 * thrown if an error occurs during the bind or connect 588 impl.bind(add 767 public void bind(SocketAddress localAddr) throws IOException { method in class:Socket [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | OldDatagramSocketImplFactoryTest.java | 134 protected void bind(int arg0, InetAddress arg1) throws SocketException { method in class:OldDatagramSocketImplFactoryTest.TestDatagramSocketImpl
|
H A D | OldSocketImplFactoryTest.java | 129 protected void bind(InetAddress arg0, int arg1) throws IOException { method in class:OldSocketImplFactoryTest.MockSocketImpl
|
H A D | OldServerSocketTest.java | 59 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 D | OldSocketTest.java | 255 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); 674 // now bind the socket and make sure we get the right answer 675 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); 682 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); 690 s.bind(new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0)); 712 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); 752 // now test when we bind explicitly 756 theSocket.bind(null); 822 // Address we cannot bind to 825 theSocket.bind(ne 2204 protected void bind(InetAddress arg0, int arg1) throws IOException { method in class:OldSocketTest.MockSocketImpl [all...] |
H A D | URLConnectionTest.java | 2993 @Override public void bind(SocketAddress localAddr) throws IOException { method in class:URLConnectionTest.DelegatingSSLSocket 2994 delegate.bind(localAddr);
|
/libcore/luni/src/main/java/java/nio/ |
H A D | DatagramChannelImpl.java | 111 * bind() or connect(). 160 // connect() performs a bind() if an explicit bind() was not performed. Keep the local 537 public void bind(SocketAddress localAddr) throws SocketException { method in class:DatagramChannelImpl.DatagramSocketAdapter 541 super.bind(localAddr); 552 // Connect may have performed an implicit bind(). Sync up here. 581 // DatagramSocket.receive() will implicitly bind if it hasn't been done explicitly. 593 // DatagramSocket.send() will implicitly bind if it hasn't been done explicitly. Force 594 // bind() here so that the channel state stays in sync with the socket. 598 // DatagramSocket.send() will implicitly bind i [all...] |
H A D | SocketChannelImpl.java | 142 * bind() or connect(). 218 // If the channel was not bound, a connection attempt will have caused an implicit bind() to 541 public void bind(SocketAddress localAddr) throws IOException { method in class:SocketChannelImpl.SocketAdapter 548 super.bind(localAddr);
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | IoBridge.java | 79 public static void bind(FileDescriptor fd, InetAddress address, int port) throws SocketException { method in class:IoBridge 83 // Linux won't let you bind a link-local address without a scope id. 87 throw new SocketException("Can't bind to a link-local address without a scope id: " + address); 97 Libcore.os.bind(fd, address, port);
|
H A D | ForwardingOs.java | 56 public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { os.bind(fd, address, port); } method in class:ForwardingOs 57 public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException { os.bind(fd, address); } method in class:ForwardingOs
|
H A D | Os.java | 47 public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; method in interface:Os 48 public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException; method in interface:Os
|
H A D | Posix.java | 50 public native void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; method in class:Posix 51 public native void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException; method in class:Posix
|
/libcore/luni/src/main/java/android/system/ |
H A D | Os.java | 53 * See <a href="http://man7.org/linux/man-pages/man2/bind.2.html">bind(2)</a>. 55 public static void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { Libcore.os.bind(fd, address, port); } method in class:Os 57 /** @hide */ public static void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException { Libcore.os.bind(fd, address); } method in class:Os
|