Searched defs:localPort (Results 1 - 14 of 14) 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/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/main/java/org/apache/harmony/xnet/provider/jsse/
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/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
/libcore/luni/src/main/java/java/net/
H A DDatagramSocketImpl.java37 protected int localPort; field in class:DatagramSocketImpl
43 localPort = -1;
95 return localPort;
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 DPlainSocketImpl.java123 public void initLocalPort(int localPort) { argument
124 this.localport = localPort;
H A DSocket.java96 * @param localPort
107 localAddress, int localPort, boolean streaming) throws IOException {
117 startupSocket(dstAddress, dstPort, localAddress, localPort, streaming);
127 startupSocket(dstAddress, dstPort, localAddress, localPort, streaming);
156 * {@code localPort}. If {@code host} is {@code null} a loopback address is used to connect to.
168 * @param localPort
175 public Socket(String dstName, int dstPort, InetAddress localAddress, int localPort) throws IOException { argument
177 tryAllAddresses(dstName, dstPort, localAddress, localPort, true);
232 * port {@code localPort}.
240 * @param localPort
106 tryAllAddresses(String dstName, int dstPort, InetAddress localAddress, int localPort, boolean streaming) argument
245 Socket(InetAddress dstAddress, int dstPort, InetAddress localAddress, int localPort) argument
549 startupSocket(InetAddress dstAddress, int dstPort, InetAddress localAddress, int localPort, boolean streaming) argument
[all...]
/libcore/luni/src/main/java/java/nio/
H A DDatagramChannelImpl.java59 private int localPort; field in class:DatagramChannelImpl
95 socket = new DatagramSocketAdapter(new PlainDatagramSocketImpl(fd, localPort), this);
H A DSocketChannelImpl.java78 private int localPort; field in class:SocketChannelImpl
128 socket = new SocketAdapter(new PlainSocketImpl(fd, localPort, addr, port), this);
221 localPort = isa.getPort();
223 socket.socketImpl().initLocalPort(localPort);
/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);

Completed in 174 milliseconds