Searched refs:localPort (Results 1 - 18 of 18) 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/java/net/
H A DDatagramSocketImpl.java36 protected int localPort; field in class:DatagramSocketImpl
42 localPort = -1;
87 return localPort;
276 protected void onBind(InetAddress localAddress, int localPort) { argument
H A DPlainDatagramSocketImpl.java47 public PlainDatagramSocketImpl(FileDescriptor fd, int localPort) { argument
49 this.localPort = localPort;
62 localPort = port;
64 localPort = IoBridge.getSocketLocalPort(fd);
73 protected void onBind(InetAddress localAddress, int localPort) { argument
74 this.localPort = 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
572 startupSocket(InetAddress dstAddress, int dstPort, InetAddress localAddress, int localPort, boolean streaming) argument
806 onBind(InetAddress localAddress, int localPort) argument
[all...]
H A DDatagramSocket.java466 int localPort;
469 localPort = 0;
481 localPort = inetAddr.getPort();
482 checkPort(localPort);
484 impl.bind(localPort, addr);
494 public void onBind(InetAddress localAddress, int localPort) { argument
496 impl.onBind(localAddress, localPort);
H A DSocketImpl.java221 ",port=" + port + ",localPort=" + getLocalPort() + "]";
302 public void onBind(InetAddress localAddress, int localPort) { argument
H A DPlainSocketImpl.java141 public void onBind(InetAddress localAddress, int localPort) { argument
142 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/main/java/java/nio/
H A DDatagramChannelImpl.java67 private int localPort; field in class:DatagramChannelImpl
103 socket = new DatagramSocketAdapter(new PlainDatagramSocketImpl(fd, localPort), this);
109 * Initialise the isBound, localAddress and localPort state from the file descriptor. Used when
127 localPort = localSocketAddress.getPort();
129 socket.onBind(localAddress, localPort);
514 onBind(channelImpl.localAddress, channelImpl.localPort);
H A DSocketChannelImpl.java81 private int localPort; field in class:SocketChannelImpl
131 socket = new SocketAdapter(new PlainSocketImpl(fd, localPort, addr, port), this);
140 * Initialise the isBound, localAddress and localPort state from the file descriptor. Used when
158 localPort = localSocketAddress.getPort();
160 socket.onBind(localAddress, localPort);
507 onBind(channel.localAddress, channel.localPort);
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestSSLContext.java286 public Socket createSocket(String host, int port, InetAddress localHost, int localPort)
288 return set(sf.createSocket(host, port, localHost, localPort));
294 InetAddress localAddress, int localPort) throws IOException {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/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/harmony-tests/src/test/java/org/apache/harmony/tests/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/test/java/libcore/javax/net/ssl/
H A DSSLSocketFactoryTest.java120 int localPort) {
130 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) { argument
119 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument
/libcore/luni/src/test/java/libcore/java/net/
H A DSocketTest.java59 int localPort = s.getLocalPort();
60 assertTrue(localPort > 0);
65 assertEquals(localPort, s.getLocalPort());
H A DURLConnectionTest.java2511 int localPort) throws IOException, UnknownHostException {
2512 return delegate.createSocket(host, port, localHost, localPort);
2522 InetAddress localAddress, int localPort) throws IOException {
2523 return delegate.createSocket(address, port, localAddress, localPort);
2565 int localPort) throws IOException, UnknownHostException {
2566 SSLSocket socket = (SSLSocket) delegate.createSocket(host, port, localHost, localPort);
2580 InetAddress localAddress, int localPort) throws IOException {
2582 (SSLSocket) delegate.createSocket(address, port, localAddress, localPort);
2623 int localPort) throws IOException, UnknownHostException {
2624 SSLSocket socket = (SSLSocket) delegate.createSocket(host, port, localHost, localPort);
2510 createSocket(String host, int port, InetAddress localHost, int localPort) argument
2521 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument
2564 createSocket(String host, int port, InetAddress localHost, int localPort) argument
2579 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument
2622 createSocket(String host, int port, InetAddress localHost, int localPort) argument
2637 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DServerSocketTest.java597 int localPort = theSocket.getLocalPort();
600 .getLocalHost(), localPort));

Completed in 1029 milliseconds