Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/net/
DServerSocketTest.java51 new Socket(ss.getInetAddress(), ss.getLocalPort()).close(); in testTimeoutAfterAccept()
64 assertNull(ss.getInetAddress()); in testInitialState()
80 assertEquals(boundAddress.getAddress(), ss.getInetAddress()); in testStateAfterClose()
DSocketTest.java152 assertEquals(inLocalAddress.getAddress(), ss.getInetAddress()); in checkSocketLocalAndRemoteAddresses()
153 assertEquals(inRemoteAddress.getAddress(), ss.getInetAddress()); in checkSocketLocalAndRemoteAddresses()
154 assertEquals(outLocalAddress.getAddress(), ss.getInetAddress()); in checkSocketLocalAndRemoteAddresses()
155 assertEquals(outRemoteAddress.getAddress(), ss.getInetAddress()); in checkSocketLocalAndRemoteAddresses()
362 assertNull(s.getInetAddress()); in testInitialState()
DOldSocketTest.java203 assertTrue("Returned incorrect InetAddress", s.getInetAddress().equals( in test_getInetAddress()
630 Socket theSocket = new Socket(serverSocket.getInetAddress(), serverSocket.getLocalPort()); in test_shutdownOutput()
733 Socket theSocket = new Socket(serverSocket.getInetAddress(), serverSocket.getLocalPort()); in test_isBound()
767 Socket theSocket = new Socket(serverSocket.getInetAddress(), serverSocket.getLocalPort()); in test_isConnected()
789 Socket theSocket = new Socket(serverSocket.getInetAddress(), in test_isClosed()
798 theSocket = new Socket(serverSocket.getInetAddress(), serverSocket.getLocalPort()); in test_isClosed()
1967 new InetSocketAddress(ss.getInetAddress(), ss.getLocalPort())); in test_getOutputStream_shutdownOutput()
DDatagramSocketTest.java50 assertNull(ds.getInetAddress()); in testInitialState()
DURLConnectionTest.java3318 @Override public InetAddress getInetAddress() { return delegate.getInetAddress(); }
3458 @Override public InetAddress getInetAddress() {
3459 return delegate.getInetAddress();
/libcore/ojluni/src/main/java/java/net/
DServerSocket.java406 public InetAddress getInetAddress() { in getInetAddress() method in ServerSocket
410 InetAddress in = getImpl().getInetAddress(); in getInetAddress()
478 return new InetSocketAddress(getInetAddress(), getLocalPort()); in getLocalSocketAddress()
551 security.checkAccept(si.getInetAddress().getHostAddress(), in implAccept()
755 in = impl.getInetAddress(); in toString()
DSocketImpl.java242 protected InetAddress getInetAddress() { in getInetAddress() method in SocketImpl
311 return "Socket[addr=" + getInetAddress() + in toString()
DSocket.java715 public InetAddress getInetAddress() { in getInetAddress() method in Socket
719 return getImpl().getInetAddress(); in getInetAddress()
823 return new InetSocketAddress(getInetAddress(), getPort()); in getRemoteSocketAddress()
1608 return "Socket[address=" + getImpl().getInetAddress() + in toString()
DSocksSocketImpl.java517 protected InetAddress getInetAddress() { in getInetAddress() method in SocksSocketImpl
521 return super.getInetAddress(); in getInetAddress()
DDatagramSocket.java578 public InetAddress getInetAddress() { in getInetAddress() method in DatagramSocket
615 return new InetSocketAddress(getInetAddress(), getPort()); in getRemoteSocketAddress()
/libcore/ojluni/src/main/java/sun/nio/ch/
DServerSocketAdaptor.java80 public InetAddress getInetAddress() { in getInetAddress() method in ServerSocketAdaptor
180 return "ServerSocket[addr=" + getInetAddress() + in toString()
DSocketAdaptor.java146 public InetAddress getInetAddress() { in getInetAddress() method in SocketAdaptor
430 return "Socket[addr=" + getInetAddress() + in toString()
DDatagramSocketAdaptor.java127 public InetAddress getInetAddress() { in getInetAddress() method in DatagramSocketAdaptor
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketTest.java153 assertEquals("Incorrect InetAddress", inetAddress, ds.getInetAddress()); in test_connectLjava_net_InetAddressI()
162 assertEquals(inetAddress, ds.getInetAddress()); in test_connectLjava_net_InetAddressI()
333 assertNull("Incorrect InetAddress", ds.getInetAddress()); in test_disconnect()
342 assertNull("Incorrect InetAddress", ds.getInetAddress()); in test_disconnect()
DSocketTest.java84 host = socket.getInetAddress().getHostName(); in run()
666 assertTrue("Returned incorrect InetAdrees", client.getInetAddress() in test_getInetAddress()
1026 .getInetAddress(), server.getLocalPort()); in test_isBound()
1105 .getInetAddress(), server.getLocalPort()); in test_isConnected()
DServerSocketTest.java283 .getInetAddress()); in test_getInetAddress()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DServerSocketChannelTest.java60 assertNull(socket.getInetAddress()); in test_open_initialState()
DDatagramChannelTest.java94 assertNull(socket.getInetAddress()); in testInitialState()
DSocketChannelTest.java155 assertNull(socket.getInetAddress()); in test_open_initialState()
/libcore/support/src/test/java/tests/http/
DMockWebServer.java261 raw, raw.getInetAddress().getHostAddress(), raw.getPort(), true); in serveConnection()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSocketChannelTest.java441 assertNull(socket.getInetAddress()); in testSocket_getInetAddress()
445 assertNotNull(socket.getInetAddress()); in testSocket_getInetAddress()
446 assertEquals(localAddr1.getAddress(), socket.getInetAddress()); in testSocket_getInetAddress()
544 assertNull(s.getInetAddress()); in assertSocketBeforeConnect()
574 assertSame(s.getInetAddress(), address.getAddress()); in assertSocketAfterConnect()
DServerSocketChannelTest.java310 assertNull(s.getInetAddress()); in assertSocketNotAccepted()
DDatagramChannelTest.java276 assertNull(s1.getInetAddress()); in testSocket_BasicStatusBeforeConnect()
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
DFtpClient.java602 InetAddress add = server.getInetAddress(); in openPassiveDataConnection()
741 myAddress = portSocket.getInetAddress(); in openDataConnection()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLSocketTest.java1670 Socket underlying = new Socket(listening.getInetAddress(), listening.getLocalPort()); in test_SSLSocket_setSoTimeout_basic()
1698 Socket underlying = new Socket(listening.getInetAddress(), listening.getLocalPort()); in test_SSLSocket_setSoTimeout_wrapper()
1867 Socket underlying = new Socket(listening.getInetAddress(), listening.getLocalPort()); in test_SSLSocket_interrupt_case()