Searched refs:getLocalPort (Results 1 - 25 of 36) sorted by relevance

12

/libcore/luni/src/test/java/tests/api/javax/net/
H A DServerSocketFactoryTest.java52 sf.createServerSocket(ss.getLocalPort());
72 sf.createServerSocket(ss.getLocalPort(), 0);
93 sf.createServerSocket(ss.getLocalPort(), 0, InetAddress.getLocalHost());
H A DSocketFactoryTest.java47 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 DServerSocketTest.java42 new Socket(ss.getInetAddress(), ss.getLocalPort());
H A DOldServerSocketTest.java60 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 DOldDatagramPacketTest.java49 DatagramPacket packet = new DatagramPacket(bytes, 6, InetAddress.getByName("localhost"), ss.getLocalPort());
54 assertEquals(packet.getPort(), ss.getLocalPort());
H A DOldUnixSocketTest.java40 InetAddress.getLocalHost(), pingServer.getLocalPort()));
103 int port = ss.getLocalPort();
H A DSocketTest.java47 * 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 DOldSocketTest.java83 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 DOldDatagramSocketTest.java142 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 DSocketImpl.java176 protected int getLocalPort() { method in class:SocketImpl
221 ",port=" + port + ",localPort=" + getLocalPort() + "]";
H A DServerSocket.java173 public int getLocalPort() { method in class:ServerSocket
177 return impl.getLocalPort();
263 .append(getLocalPort()).append("]")
339 return new InetSocketAddress(getInetAddress(), getLocalPort());
H A DDatagramSocketImpl.java86 protected int getLocalPort() { method in class:DatagramSocketImpl
H A DDatagramSocket.java172 public int getLocalPort() { method in class:DatagramSocket
179 return impl.getLocalPort();
546 return new InetSocketAddress(getLocalAddress(), getLocalPort());
H A DSocket.java366 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 DStuckServer.java52 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 DSupport_PortManager.java41 int port = ss.getLocalPort();
72 ports[i] = dss[i].getLocalPort();
/libcore/crypto/src/main/java/org/conscrypt/
H A DOpenSSLSocketImplWrapper.java200 public int getLocalPort() { method in class:OpenSSLSocketImplWrapper
201 return socket.getLocalPort();
H A DSSLSocketWrapper.java220 public int getLocalPort() { method in class:SSLSocketWrapper
221 return socket.getLocalPort();
/libcore/luni/src/test/java/libcore/javax/net/
H A DServerSocketFactoryTest.java75 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 DHttpsURLConnectionTest.java115 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 DSSLServerSocketTest.java142 new mySSLServerSocket(ssl.getLocalPort());
164 new mySSLServerSocket(ssl.getLocalPort(), 1);
190 new mySSLServerSocket(ssl.getLocalPort(), 0, InetAddress.getLocalHost());
H A DSSLSocketFactoryTest.java38 return ss.getLocalPort();
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
H A DHttpURLConnectionTest.java60 return serverSocket.getLocalPort();
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/
H A DServerSocketChannelTest.java184 assertEquals(-1, s.getLocalPort());
646 int port = myChannel.socket().getLocalPort();
H A DSocketChannelTest.java421 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());

Completed in 688 milliseconds

12