/libcore/luni/src/main/java/javax/net/ |
H A D | DefaultSocketFactory.java | 44 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 D | SocketFactory.java | 91 * 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 D | DefaultSSLSocketFactory.java | 61 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 D | DelegatingSSLSocketFactory.java | 79 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 D | SocketFactoryTest.java | 170 * 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 D | DatagramSocketImpl.java | 36 protected int localPort; field in class:DatagramSocketImpl 42 localPort = -1; 87 return localPort; 276 protected void onBind(InetAddress localAddress, int localPort) { argument
|
H A D | PlainDatagramSocketImpl.java | 47 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 D | SocketImpl.java | 221 ",port=" + port + ",localPort=" + getLocalPort() + "]"; 302 public void onBind(InetAddress localAddress, int localPort) { argument
|
H A D | DatagramSocket.java | 466 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 D | PlainSocketImpl.java | 141 public void onBind(InetAddress localAddress, int localPort) { argument 142 localport = localPort;
|
H A D | Socket.java | 97 * @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 D | SSLSocketFactoryTest.java | 120 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 D | SSLSocketTest.java | 616 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 D | DatagramChannelImpl.java | 67 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 D | SocketChannelImpl.java | 81 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 D | URLConnectionTest.java | 2717 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...] |