/libcore/luni/src/test/java/tests/api/javax/net/ |
H A D | ServerSocketFactoryTest.java | 52 sf.createServerSocket(ss.getLocalPort()); 72 sf.createServerSocket(ss.getLocalPort(), 0); 93 sf.createServerSocket(ss.getLocalPort(), 0, InetAddress.getLocalHost());
|
H A D | SocketFactoryTest.java | 47 assertEquals(-1, s.getLocalPort()); 60 int sport = new ServerSocket(0).getLocalPort(); 82 sf.createSocket(InetAddress.getLocalHost().getHostName(), s.getLocalPort()); 97 int sport = new ServerSocket(0).getLocalPort(); 113 sf.createSocket(InetAddress.getLocalHost(), s.getLocalPort()); 128 int sport = new ServerSocket(0).getLocalPort(); 135 int portNumber = s.getLocalPort(); 174 int sport = new ServerSocket(0).getLocalPort();
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | ServerSocketTest.java | 42 new Socket(ss.getInetAddress(), ss.getLocalPort());
|
H A D | OldServerSocketTest.java | 60 int portNumber = theSocket.getLocalPort(); 90 startClient(s.getLocalPort()); 129 assertEquals(-1, ss.getLocalPort()); 136 new ServerSocket(s.getLocalPort()); 142 startClient(s.getLocalPort()); 152 startClient(s.getLocalPort()); 164 new ServerSocket(ss.getLocalPort(), 10, InetAddress.getLocalHost()); 179 assertEquals(ss1.getLocalPort(), 4242); 184 assertEquals(ss2.getLocalPort(), 4343); 188 assertTrue(ss3.getLocalPort() ! [all...] |
H A D | OldDatagramPacketTest.java | 49 DatagramPacket packet = new DatagramPacket(bytes, 6, InetAddress.getByName("localhost"), ss.getLocalPort()); 54 assertEquals(packet.getPort(), ss.getLocalPort());
|
H A D | OldUnixSocketTest.java | 40 InetAddress.getLocalHost(), pingServer.getLocalPort())); 103 int port = ss.getLocalPort();
|
H A D | SocketTest.java | 47 * Our getLocalAddress and getLocalPort currently use getsockname(3). 58 int localPort = s.getLocalPort(); 64 assertEquals(localPort, s.getLocalPort()); 101 InetSocketAddress addr = new InetSocketAddress(host, ssc.socket().getLocalPort()); 121 assertEquals(outRemoteAddress.getPort(), ss.getLocalPort()); 122 assertEquals(inLocalAddress.getPort(), ss.getLocalPort()); 275 Socket socket = new Socket("localhost", serverSocket.getLocalPort()); 298 port = serverSocket.getLocalPort();
|
H A D | OldSocketTest.java | 83 s = new Socket("0.0.0.0", ss.getLocalPort()); 125 Socket s2 = new Socket("www.google.com", 80, null, s1.getLocalPort()); 205 Socket client = new Socket(InetAddress.getLocalHost(), server.getLocalPort()); 262 // Test for method int java.net.Socket.getLocalPort() 263 int sport = startServer("SServer getLocalPort"); 267 s.getLocalPort(); 586 + ",localPort=" + s.getLocalPort() + "]", s.toString()); 593 Socket theSocket = new Socket(addr, serverSocket.getLocalPort()); 628 Socket theSocket = new Socket(serverSocket.getInetAddress(), serverSocket.getLocalPort()); 662 assertEquals(new InetSocketAddress(InetAddress.getLocalHost(), s.getLocalPort()), [all...] |
H A D | OldDatagramSocketTest.java | 142 ds.getLocalPort() == portNumber); 190 ds.getLocalPort() == portNumber); 293 int port = ds.getLocalPort(); 394 int port = ds.getLocalPort(); 475 int port = ds.getLocalPort(); 528 int port = ds.getLocalPort(); 580 int port = ds.getLocalPort(); 716 // Test for method int java.net.DatagramSocket.getLocalPort() 721 ds.getLocalPort() == portNumber); 1188 .getLocalPort() [all...] |
/libcore/luni/src/main/java/java/net/ |
H A D | SocketImpl.java | 176 protected int getLocalPort() { method in class:SocketImpl 221 ",port=" + port + ",localPort=" + getLocalPort() + "]";
|
H A D | ServerSocket.java | 173 public int getLocalPort() { method in class:ServerSocket 177 return impl.getLocalPort(); 263 .append(getLocalPort()).append("]") 339 return new InetSocketAddress(getInetAddress(), getLocalPort());
|
H A D | DatagramSocketImpl.java | 86 protected int getLocalPort() { method in class:DatagramSocketImpl
|
H A D | DatagramSocket.java | 172 public int getLocalPort() { method in class:DatagramSocket 179 return impl.getLocalPort(); 546 return new InetSocketAddress(getLocalAddress(), getLocalPort());
|
H A D | Socket.java | 366 public int getLocalPort() { method in class:Socket 370 return impl.getLocalPort(); 683 return new InetSocketAddress(getLocalAddress(), getLocalPort());
|
/libcore/support/src/test/java/tests/net/ |
H A D | StuckServer.java | 52 Socket client = new Socket(serverSocket.getInetAddress(), serverSocket.getLocalPort()); 73 public int getLocalPort() { method in class:StuckServer
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_PortManager.java | 41 int port = ss.getLocalPort(); 72 ports[i] = dss[i].getLocalPort();
|
/libcore/crypto/src/main/java/org/conscrypt/ |
H A D | OpenSSLSocketImplWrapper.java | 200 public int getLocalPort() { method in class:OpenSSLSocketImplWrapper 201 return socket.getLocalPort();
|
H A D | SSLSocketWrapper.java | 220 public int getLocalPort() { method in class:SSLSocketWrapper 221 return socket.getLocalPort();
|
/libcore/luni/src/test/java/libcore/javax/net/ |
H A D | ServerSocketFactoryTest.java | 75 Socket socket = new Socket(InetAddress.getLocalHost(), serverSocket.getLocalPort()); 77 InetAddress.getLocalHost(), serverSocket.getLocalPort()));
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/ |
H A D | HttpsURLConnectionTest.java | 115 Socket s = defaultSSLSF.createSocket("localhost", ss.getLocalPort()); 134 URL url = new URL("https://localhost:" + ss.getLocalPort()); 165 URL url = new URL("https://localhost:" + ss.getLocalPort()); 204 URL url = new URL("https://localhost:" + ss.getLocalPort()); 242 URL url = new URL("https://localhost:" + ss.getLocalPort()); 320 URL url = new URL("https://localhost:" + ss.getLocalPort()); 356 URL url = new URL("https://localhost:" + ss.getLocalPort()); 389 ss.getLocalPort()))); 429 ss.getLocalPort()))); 463 ss.getLocalPort()))); [all...] |
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
H A D | SSLServerSocketTest.java | 142 new mySSLServerSocket(ssl.getLocalPort()); 164 new mySSLServerSocket(ssl.getLocalPort(), 1); 190 new mySSLServerSocket(ssl.getLocalPort(), 0, InetAddress.getLocalHost());
|
H A D | SSLSocketFactoryTest.java | 38 return ss.getLocalPort();
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/ |
H A D | HttpURLConnectionTest.java | 60 return serverSocket.getLocalPort();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ |
H A D | ServerSocketChannelTest.java | 184 assertEquals(-1, s.getLocalPort()); 646 int port = myChannel.socket().getLocalPort();
|
H A D | SocketChannelTest.java | 421 assertEquals(-1, socket.getLocalPort()); 425 assertTrue(-1 != socket.getLocalPort()); 426 assertTrue(0 != socket.getLocalPort()); 433 assertTrue(socket.getLocalPort() != -1); 464 assertEquals(-1, s.getLocalPort()); 1323 int port = server.getLocalPort(); 1807 boolean connected = channel1.connect(new InetSocketAddress("localhost",serversocket.getLocalPort())); 2121 .getLocalPort());
|