Searched refs:localPort (Results 1 - 17 of 17) sorted by relevance

/libcore/luni/src/main/java/javax/net/
H A DDefaultSocketFactory.java44 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument
46 return new Socket(host, port, localHost, localPort);
56 int localPort) throws IOException {
57 return new Socket(address, port, localAddress, localPort);
55 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument
H A DSocketFactory.java91 * port {@code localPort}.
100 * @param localPort
110 public abstract Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument
134 * localPort}.
143 * @param localPort
151 int localPort) throws IOException;
150 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument
/libcore/crypto/src/main/java/org/conscrypt/
H A DOpenSSLSocketFactoryImpl.java67 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument
72 localPort,
83 int localPort)
88 localPort,
80 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument
H A DSSLSocketFactoryImpl.java126 InetAddress localHost, int localPort) throws IOException,
131 return new SSLSocketImpl(host, port, localHost, localPort,
153 InetAddress localAddress, int localPort) throws IOException {
157 return new SSLSocketImpl(address, port, localAddress, localPort,
125 createSocket(String host, int port, InetAddress localHost, int localPort) argument
152 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument
H A DSSLSocketImpl.java119 * @param localPort: int
127 InetAddress localHost, int localPort,
130 super(host, port, localHost, localPort);
161 * @param localPort: int
169 InetAddress localAddress, int localPort,
171 super(address, port, localAddress, localPort);
126 SSLSocketImpl(String host, int port, InetAddress localHost, int localPort, SSLParametersImpl sslParameters) argument
168 SSLSocketImpl(InetAddress address, int port, InetAddress localAddress, int localPort, SSLParametersImpl sslParameters) argument
/libcore/luni/src/main/java/java/net/
H A DDatagramSocketImpl.java36 protected int localPort; field in class:DatagramSocketImpl
42 localPort = -1;
87 return localPort;
H A DSocket.java97 * @param localPort
108 localAddress, int localPort, boolean streaming) throws IOException {
118 startupSocket(dstAddress, dstPort, localAddress, localPort, streaming);
128 startupSocket(dstAddress, dstPort, localAddress, localPort, streaming);
157 * {@code localPort}. If {@code host} is {@code null} a loopback address is used to connect to.
169 * @param localPort
176 public Socket(String dstName, int dstPort, InetAddress localAddress, int localPort) throws IOException { argument
178 tryAllAddresses(dstName, dstPort, localAddress, localPort, true);
233 * port {@code localPort}.
241 * @param localPort
107 tryAllAddresses(String dstName, int dstPort, InetAddress localAddress, int localPort, boolean streaming) argument
246 Socket(InetAddress dstAddress, int dstPort, InetAddress localAddress, int localPort) argument
550 startupSocket(InetAddress dstAddress, int dstPort, InetAddress localAddress, int localPort, boolean streaming) argument
[all...]
H A DPlainDatagramSocketImpl.java55 public PlainDatagramSocketImpl(FileDescriptor fd, int localPort) { argument
57 this.localPort = localPort;
70 localPort = port;
72 localPort = IoBridge.getSocketLocalPort(fd);
H A DDatagramSocket.java442 int localPort = 0;
454 localPort = inetAddr.getPort();
455 checkPort(localPort);
457 impl.bind(localPort, addr);
H A DPlainSocketImpl.java123 public void initLocalPort(int localPort) { argument
124 this.localport = localPort;
/libcore/luni/src/main/java/javax/net/ssl/
H A DDefaultSSLSocketFactory.java61 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument
73 int localPort) throws IOException {
72 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument
/libcore/luni/src/test/java/libcore/java/net/
H A DSocketTest.java58 int localPort = s.getLocalPort();
59 assertTrue(localPort > 0);
64 assertEquals(localPort, s.getLocalPort());
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestSSLContext.java280 public Socket createSocket(String host, int port, InetAddress localHost, int localPort)
282 return set(sf.createSocket(host, port, localHost, localPort));
288 InetAddress localAddress, int localPort) throws IOException {
/libcore/luni/src/main/java/java/nio/
H A DSocketChannelImpl.java78 private int localPort; field in class:SocketChannelImpl
128 socket = new SocketAdapter(new PlainSocketImpl(fd, localPort, addr, port), this);
234 localPort = isa.getPort();
236 socket.socketImpl().initLocalPort(localPort);
H A DDatagramChannelImpl.java59 private int localPort; field in class:DatagramChannelImpl
95 socket = new DatagramSocketAdapter(new PlainDatagramSocketImpl(fd, localPort), this);
/libcore/luni/src/test/java/tests/api/javax/net/ssl/
H A DSSLSocketTest.java616 private SSLSocket getSSLSocket(InetAddress host, int port, InetAddress localHost, int localPort) argument
621 localPort);
624 private SSLSocket getSSLSocket(String host, int port, InetAddress localHost, int localPort) argument
629 localPort);
/libcore/luni/src/test/java/tests/api/javax/net/
H A DSocketFactoryTest.java170 * InetAddress localHost, int localPort)
251 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument
263 InetAddress localAddress, int localPort) throws IOException {
262 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument

Completed in 310 milliseconds