Searched refs:socketAddress (Results 1 – 8 of 8) sorted by relevance
/libcore/luni/src/test/java/libcore/java/net/ |
D | InetSocketAddressTest.java | 177 InetSocketAddress socketAddress = new InetSocketAddress(inetAddress, 1234); in test_getHostString_cachingBehavior() local 178 assertEquals("127.0.0.1", socketAddress.getHostString()); in test_getHostString_cachingBehavior() 179 assertEquals("localhost", socketAddress.getHostName()); in test_getHostString_cachingBehavior() 180 assertEquals("localhost", socketAddress.getHostString()); in test_getHostString_cachingBehavior() 183 socketAddress = new InetSocketAddress(inetAddress, 1234); in test_getHostString_cachingBehavior() 184 assertEquals("127.0.0.1", socketAddress.getHostString()); in test_getHostString_cachingBehavior() 185 assertEquals("localhost", socketAddress.getHostName()); in test_getHostString_cachingBehavior() 186 assertEquals("localhost", socketAddress.getHostString()); in test_getHostString_cachingBehavior()
|
D | ServerSocketConcurrentCloseTest.java | 186 private final SocketAddress socketAddress; field in ServerSocketConcurrentCloseTest.ClientRunnable 192 SocketAddress socketAddress, ServerRunnable serverRunnable) { in ClientRunnable() argument 193 this.socketAddress = socketAddress; in ClientRunnable() 203 socket.connect(socketAddress, /* timeout (msec) */ 10); in run()
|
D | DatagramSocketTest.java | 47 InetSocketAddress socketAddress = (InetSocketAddress) ds.getLocalSocketAddress(); in testInitialState() local 48 assertEquals(ds.getLocalPort(), socketAddress.getPort()); in testInitialState() 49 assertEquals(ds.getLocalAddress(), socketAddress.getAddress()); in testInitialState()
|
D | FtpURLConnectionTest.java | 396 SocketAddress socketAddress = serverSocket.getLocalSocketAddress(); in CountingProxy() local 397 proxy = new Proxy(Proxy.Type.HTTP, socketAddress); in CountingProxy() 398 String threadName = getClass().getSimpleName() + " @ " + socketAddress; in CountingProxy()
|
D | OldSocketTest.java | 1931 InetSocketAddress socketAddress = new InetSocketAddress("unknownhost", 12345); in test_connect_unknownhost() local 1933 socket.connect(socketAddress); in test_connect_unknownhost()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | DatagramChannelTest.java | 197 InetSocketAddress socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, 0); in test_bind() local 199 channel.bind(socketAddress); in test_bind() 200 assertEquals(socketAddress.getAddress(), in test_bind() 205 channel.bind(socketAddress); in test_bind() 210 socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, in test_bind() 213 dc.bind(socketAddress); in test_bind() 218 socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, 0); in test_bind() 220 channel.bind(socketAddress); in test_bind() 226 InetSocketAddress socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, 0); in test_getRemoteAddress() local 229 serverChannel.bind(socketAddress); in test_getRemoteAddress() [all …]
|
D | SocketChannelTest.java | 309 InetSocketAddress socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, 0); in test_bind() local 311 sc.bind(socketAddress); in test_bind() 312 assertEquals(socketAddress.getAddress(), in test_bind() 317 sc.bind(socketAddress); in test_bind() 322 socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, in test_bind() 325 sc1.bind(socketAddress); in test_bind() 331 socketAddress = new InetSocketAddress(Inet4Address.LOOPBACK, 0); in test_bind() 333 sc.bind(socketAddress); in test_bind()
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 692 SocketAddress socketAddress = Libcore.os.getsockname(fd); in getLocalInetSocketAddress() local 699 if ((socketAddress != null) && !(socketAddress instanceof InetSocketAddress)) { in getLocalInetSocketAddress() 701 + "to be an InetSocketAddress, got " + socketAddress.getClass()); in getLocalInetSocketAddress() 703 return (InetSocketAddress) socketAddress; in getLocalInetSocketAddress()
|