/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | ServerSocketChannelImpl.java | 75 private InetSocketAddress localAddress; // null => unbound field in ServerSocketChannelImpl 103 localAddress = Net.localAddress(fd); in ServerSocketChannelImpl() 119 return localAddress == null ? localAddress in getLocalAddress() 121 Net.asInetSocketAddress(localAddress)); in getLocalAddress() 200 return localAddress != null; in isBound() 204 public InetSocketAddress localAddress() { in localAddress() method in ServerSocketChannelImpl 206 return localAddress; in localAddress() 226 localAddress = Net.localAddress(fd); in bind() 401 InetSocketAddress addr = localAddress(); in toString()
|
D | AsynchronousServerSocketChannelImpl.java | 54 protected volatile InetSocketAddress localAddress = null; field in AsynchronousServerSocketChannelImpl 159 if (localAddress != null) in bind() 164 localAddress = Net.localAddress(fd); in bind() 176 return Net.getRevealedLocalAddress(localAddress); in getLocalAddress() 251 if (localAddress == null) { in toString() 254 sb.append(Net.getRevealedLocalAddressAsString(localAddress)); in toString()
|
D | SocketChannelImpl.java | 109 private InetSocketAddress localAddress; field in SocketChannelImpl 157 this.localAddress = Net.localAddress(fd); in SocketChannelImpl() 170 this.localAddress = Net.localAddress(fd); in SocketChannelImpl() 191 return Net.getRevealedLocalAddress(localAddress); in getLocalAddress() 596 public InetSocketAddress localAddress() { in localAddress() method in SocketChannelImpl 598 return localAddress; in localAddress() 617 if (localAddress != null) in bind() 627 localAddress = Net.localAddress(fd); in bind() 678 if (localAddress == null) { in connect() 718 localAddress = Net.localAddress(fd); in connect() [all …]
|
D | DatagramChannelImpl.java | 98 private InetSocketAddress localAddress; field in DatagramChannelImpl 176 this.localAddress = Net.localAddress(fd); in DatagramChannelImpl() 197 return Net.getRevealedLocalAddress(localAddress); in getLocalAddress() 263 Net.useExclusiveBind() && localAddress != null) in setOption() 370 if (localAddress() == null) in receive() 510 if (isOpen() && (localAddress == null)) { in send() 511 localAddress = Net.localAddress(fd); in send() 693 public SocketAddress localAddress() { in localAddress() method in DatagramChannelImpl 695 return localAddress; in localAddress() 711 if (localAddress != null) in bind() [all …]
|
D | AsynchronousSocketChannelImpl.java | 57 protected volatile InetSocketAddress localAddress = null; field in AsynchronousSocketChannelImpl 103 this.localAddress = Net.localAddress(fd); in AsynchronousSocketChannelImpl() 428 if (localAddress != null) in bind() 438 localAddress = Net.localAddress(fd); in bind() 450 return Net.getRevealedLocalAddress(localAddress); in getLocalAddress() 591 if (localAddress != null) { in toString() 594 Net.getRevealedLocalAddressAsString(localAddress)); in toString()
|
D | ServerSocketAdaptor.java | 83 return Net.getRevealedLocalAddress(ssc.localAddress()).getAddress(); in getInetAddress() 90 return Net.asInetSocketAddress(ssc.localAddress()).getPort(); in getLocalPort()
|
D | SocketAdaptor.java | 165 InetSocketAddress local = sc.localAddress(); in getLocalAddress() 187 SocketAddress local = sc.localAddress(); in getLocalPort() 443 return sc.localAddress() != null; in isBound()
|
D | DatagramSocketAdaptor.java | 120 return dc.localAddress() != null; in isBound() 229 SocketAddress local = dc.localAddress(); in getLocalAddress()
|
D | UnixAsynchronousSocketChannelImpl.java | 267 localAddress = Net.localAddress(fd); in setConnected() 341 notifyBeforeTcpConnect = (localAddress == null); in implConnect()
|
D | UnixAsynchronousServerSocketChannelImpl.java | 284 if (localAddress == null) in implAccept()
|
D | Net.java | 488 public static InetSocketAddress localAddress(FileDescriptor fd)
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | SelectorTest.java | 42 private SocketAddress localAddress; field in SelectorTest 58 localAddress = ss.getLocalSocketAddress(); in setUp() 155 sc.connect(localAddress); in test_selectedKeys() 398 sc.connect(localAddress); 446 channel.connect(localAddress); 473 sc.connect(localAddress); 507 sc.connect(localAddress); 545 sc.connect(localAddress); 551 sc2.connect(localAddress); 615 sc.connect(localAddress);
|
D | ServerSocketChannelTest.java | 121 … InetSocketAddress localAddress = (InetSocketAddress) ssc.socket().getLocalSocketAddress(); in test_bind_null() local 122 assertTrue(localAddress.getAddress().isAnyLocalAddress()); in test_bind_null() 123 assertTrue(localAddress.getPort() > 0); in test_bind_null()
|
D | DatagramChannelTest.java | 2408 … InetSocketAddress localAddress = (InetSocketAddress) dc.socket().getLocalSocketAddress(); in test_bind_null() local 2409 assertTrue(localAddress.getAddress().isAnyLocalAddress()); in test_bind_null() 2410 assertTrue(localAddress.getPort() > 0); in test_bind_null()
|
D | SocketChannelTest.java | 164 … InetSocketAddress localAddress = (InetSocketAddress) channel1.socket().getLocalSocketAddress(); in testBind_Null() local 165 assertTrue(localAddress.getAddress().isAnyLocalAddress()); in testBind_Null() 166 assertTrue(localAddress.getPort() > 0); in testBind_Null()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | DelegatingSocketFactory.java | 71 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, in createSocket() argument 73 Socket socket = mDelegate.createSocket(address, port, localAddress, localPort); in createSocket()
|
D | URLConnectionTest.java | 3472 InetAddress localAddress, int localPort) throws IOException { 3473 return (SSLSocket) delegate.createSocket(address, port, localAddress, localPort); 3531 InetAddress localAddress, int localPort) throws IOException { 3533 (SSLSocket) delegate.createSocket(address, port, localAddress, localPort); 3924 InetAddress localAddress, int localPort) throws IOException { 3925 SSLSocket socket = super.createSocket(address, port, localAddress, localPort);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | ServerSocketTest.java | 454 SocketAddress localAddress = theSocket.getLocalSocketAddress(); in test_bindLjava_net_SocketAddress() local 455 theSocket2.bind(localAddress); in test_bindLjava_net_SocketAddress() 515 SocketAddress localAddress = theSocket.getLocalSocketAddress(); in test_bindLjava_net_SocketAddressI() local 517 clientSocket.connect(localAddress); in test_bindLjava_net_SocketAddressI() 520 assertTrue(clientSocket.getRemoteSocketAddress().equals(localAddress)); in test_bindLjava_net_SocketAddressI() 576 localAddress = theSocket.getLocalSocketAddress(); in test_bindLjava_net_SocketAddressI() 582 theSockets[i].connect(localAddress); in test_bindLjava_net_SocketAddressI()
|
D | DatagramSocketTest.java | 756 InetSocketAddress localAddress = new InetSocketAddress(InetAddress.getLocalHost(), 0); in test_getLocalSocketAddress_late_bind() local 757 theSocket.bind(localAddress); in test_getLocalSocketAddress_late_bind() 758 assertEquals(localAddress.getAddress(), theSocket.getLocalAddress()); in test_getLocalSocketAddress_late_bind()
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | FakeSSLSocketFactory.java | 45 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, in createSocket() argument
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | DatagramChannelMulticastTest.java | 236 InetSocketAddress localAddress = (InetSocketAddress) receiverChannel.getLocalAddress(); in check_joinAnySource() local 240 createChannelAndSendMulticastMessage(group, localAddress.getPort(), msg, networkInterface); in check_joinAnySource() 250 group2, localAddress.getPort(), msg2, networkInterface); in check_joinAnySource() 358 InetSocketAddress localAddress = (InetSocketAddress) dc.getLocalAddress(); in test_joinAnySource_networkInterfaces() local 365 group, localAddress.getPort(), msg, sendingInterface); in test_joinAnySource_networkInterfaces() 448 InetSocketAddress localAddress = (InetSocketAddress) dc.getLocalAddress(); in check_joinAnySource_multicastLoopOption() local 453 dc.send(sendBuffer, new InetSocketAddress(group, localAddress.getPort())); in check_joinAnySource_multicastLoopOption() 468 dc.send(sendBuffer2, new InetSocketAddress(group, localAddress.getPort())); in check_joinAnySource_multicastLoopOption()
|
/libcore/ojluni/src/main/java/javax/net/ |
D | SocketFactory.java | 253 InetAddress localAddress, int localPort) in createSocket() argument
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 202 InetSocketAddress localAddress = null; in createMessageForException() local 204 localAddress = getLocalInetSocketAddress(fd); in createMessageForException() 215 if (localAddress != null) { in createMessageForException() 217 .append(localAddress.getAddress()) in createMessageForException() 219 .append(localAddress.getPort()) in createMessageForException()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ |
D | SocketFactoryTest.java | 303 InetAddress localAddress, int localPort) throws IOException { in createSocket() argument
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | TestSSLContext.java | 403 InetAddress localAddress, int localPort) throws IOException { in clientAuth() argument
|