Home
last modified time | relevance | path

Searched refs:localPort (Results 1 – 21 of 21) sorted by relevance

/libcore/luni/src/test/java/libcore/java/net/
DDelegatingSocketFactory.java58 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) in createSocket() argument
60 Socket socket = mDelegate.createSocket(host, port, localHost, localPort); in createSocket()
72 int localPort) throws IOException { in createSocket() argument
73 Socket socket = mDelegate.createSocket(address, port, localAddress, localPort); in createSocket()
DSocketTest.java82 int localPort = s.getLocalPort(); in test_getLocalAddress_after_close() local
83 assertTrue(localPort > 0); in test_getLocalAddress_after_close()
88 assertEquals(localPort, s.getLocalPort()); in test_getLocalAddress_after_close()
549 int localPort) throws IOException {
550 super(host, port, localAddr, localPort);
553 int localPort) throws IOException {
554 super(address, port, localAddr, localPort);
DURLConnectionTest.java3461 int localPort) throws IOException, UnknownHostException {
3462 return (SSLSocket) delegate.createSocket(host, port, localHost, localPort);
3472 InetAddress localAddress, int localPort) throws IOException {
3473 return (SSLSocket) delegate.createSocket(address, port, localAddress, localPort);
3516 int localPort) throws IOException, UnknownHostException {
3517 SSLSocket socket = (SSLSocket) delegate.createSocket(host, port, localHost, localPort);
3531 InetAddress localAddress, int localPort) throws IOException {
3533 (SSLSocket) delegate.createSocket(address, port, localAddress, localPort);
3905 int localPort) throws IOException {
3906 SSLSocket socket = super.createSocket(host, port, localHost, localPort);
[all …]
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DFakeSSLSocketFactory.java46 int localPort) { in createSocket() argument
56 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) { in createSocket() argument
/libcore/ojluni/src/main/java/javax/net/
DSocketFactory.java195 createSocket(String host, int port, InetAddress localHost, int localPort) in createSocket() argument
253 InetAddress localAddress, int localPort) in createSocket() argument
/libcore/ojluni/src/main/java/java/net/
DDatagramSocketImpl.java43 protected int localPort; field in DatagramSocketImpl
253 return localPort; in getLocalPort()
DPlainDatagramSocketImpl.java110 localPort = IoBridge.getLocalInetSocketAddress(fd).getPort(); in bind0()
112 localPort = lport; in bind0()
DSocket.java290 int localPort) throws IOException { in Socket() argument
293 new InetSocketAddress(localAddr, localPort), true); in Socket()
332 int localPort) throws IOException { in Socket() argument
335 new InetSocketAddress(localAddr, localPort), true); in Socket()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSinkChannelTest.java467 int localPort = ssc.socket().getLocalPort(); in test_socketChannel_read_close() local
476 sc.connect(new InetSocketAddress(InetAddress.getLocalHost(), localPort)); in test_socketChannel_read_close()
492 int localPort = ssc.socket().getLocalPort(); in test_socketChannel_read_write() local
494 sc.connect(new InetSocketAddress(InetAddress.getLocalHost(), localPort)); in test_socketChannel_read_write()
/libcore/ojluni/annotations/mmodule/java/net/
DSocket.annotated.java48 public Socket(java.lang.String host, int port, java.net.InetAddress localAddr, int localPort) throw… in Socket() argument
50 public Socket(java.net.InetAddress address, int port, java.net.InetAddress localAddr, int localPort in Socket() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLSocketTest.java619 private SSLSocket getSSLSocket(InetAddress host, int port, InetAddress localHost, int localPort) in getSSLSocket() argument
624 localPort); in getSSLSocket()
627 private SSLSocket getSSLSocket(String host, int port, InetAddress localHost, int localPort) in getSSLSocket() argument
632 localPort); in getSSLSocket()
/libcore/ojluni/annotations/hiddenapi/java/net/
DSocket.java55 public Socket(java.lang.String host, int port, java.net.InetAddress localAddr, int localPort) in Socket() argument
61 java.net.InetAddress address, int port, java.net.InetAddress localAddr, int localPort) in Socket() argument
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLContext.java395 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) in clientAuth() argument
397 return set(sf.createSocket(host, port, localHost, localPort)); in clientAuth()
403 InetAddress localAddress, int localPort) throws IOException { in clientAuth() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/
DSocketFactoryTest.java291 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) in createSocket() argument
303 InetAddress localAddress, int localPort) throws IOException { in createSocket() argument
/libcore/ojluni/src/main/java/sun/nio/ch/
DNet.java482 private static native int localPort(FileDescriptor fd)
491 return new InetSocketAddress(localInetAddress(fd), localPort(fd));
DSocketChannelImpl.java658 int localPort = 0; in connect() local
DDatagramChannelImpl.java760 int localPort = 0; in connect() local
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DServerSocketTest.java626 int localPort = theSocket.getLocalPort(); in test_getLocalSocketAddress() local
629 .getLocalHost(), localPort)); in test_getLocalSocketAddress()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DURLConnectionTest.java1163 final int localPort = localServer.initServer();
1166 URLConnection uc = new URL("http", "localhost", localPort, "test2").openConnection();
/libcore/ojluni/src/main/native/
DNet.c881 NATIVE_METHOD(Net, localPort, "(Ljava/io/FileDescriptor;)I"),
/libcore/api/
Dcurrent.txt5020 field protected int localPort;