Searched defs:localPort (Results 1 - 16 of 16) 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/support/src/test/java/tests/util/
H A DDelegatingSSLSocketFactory.java79 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument
81 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port, localHost, localPort);
95 int localPort) throws IOException {
97 (SSLSocket) mDelegate.createSocket(address, port, localAddress, localPort);
94 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument
/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/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 DSocketImpl.java221 ",port=" + port + ",localPort=" + getLocalPort() + "]";
302 public void onBind(InetAddress localAddress, int localPort) { argument
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 DPlainSocketImpl.java141 public void onBind(InetAddress localAddress, int localPort) { argument
142 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);
234 * port {@code localPort}. If {@code localAddress} is {@code null} the socket will be bound to a
243 * @param localPort
107 tryAllAddresses(String dstName, int dstPort, InetAddress localAddress, int localPort, boolean streaming) argument
248 Socket(InetAddress dstAddress, int dstPort, InetAddress localAddress, int localPort) argument
574 startupSocket(InetAddress dstAddress, int dstPort, InetAddress localAddress, int localPort, boolean streaming) argument
808 onBind(InetAddress localAddress, int localPort) argument
[all...]
/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/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/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/luni/src/test/java/libcore/java/net/
H A DURLConnectionTest.java2717 int localPort) throws IOException, UnknownHostException {
2718 return (SSLSocket) delegate.createSocket(host, port, localHost, localPort);
2728 InetAddress localAddress, int localPort) throws IOException {
2729 return (SSLSocket) delegate.createSocket(address, port, localAddress, localPort);
2772 int localPort) throws IOException, UnknownHostException {
2773 SSLSocket socket = (SSLSocket) delegate.createSocket(host, port, localHost, localPort);
2787 InetAddress localAddress, int localPort) throws IOException {
2789 (SSLSocket) delegate.createSocket(address, port, localAddress, localPort);
3103 int localPort) throws IOException {
3104 SSLSocket socket = super.createSocket(host, port, localHost, localPort);
2716 createSocket(String host, int port, InetAddress localHost, int localPort) argument
2727 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument
2771 createSocket(String host, int port, InetAddress localHost, int localPort) argument
2786 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument
3102 createSocket(String host,int port, InetAddress localHost, int localPort) argument
3121 createSocket(InetAddress address,int port, InetAddress localAddress, int localPort) argument
[all...]

Completed in 468 milliseconds