/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/socket/ |
StubServerSocket.java | 32 private int localPort;
37 * @param localPort - the local port to be returned from getLocalPort()
40 public StubServerSocket(int localPort) throws IOException {
41 this(localPort, null);
46 * @param localPort - the local port to be returned from getLocalPort()
50 public StubServerSocket(int localPort, Socket socket) throws IOException {
52 this.localPort = localPort;
61 return localPort;
|
/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/core/socket/ |
StubServerSocket.java | 32 private int localPort;
37 * @param localPort - the local port to be returned from getLocalPort()
40 public StubServerSocket(int localPort) throws IOException {
41 this(localPort, null);
46 * @param localPort - the local port to be returned from getLocalPort()
50 public StubServerSocket(int localPort, Socket socket) throws IOException {
52 this.localPort = localPort;
61 return localPort;
|
/external/conscrypt/src/compat/java/org/conscrypt/ |
BaseOpenSSLSocketAdapterFactory.java | 55 public Socket createSocket(String hostname, int port, InetAddress localHost, int localPort) 58 (OpenSSLSocketImpl) delegate.createSocket(hostname, port, localHost, localPort)); 69 int localPort) 72 (OpenSSLSocketImpl) delegate.createSocket(address, port, localAddress, localPort));
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
DelegatingSocketFactory.java | 51 public Socket createSocket(String host, int port, InetAddress localAddress, int localPort) 53 Socket socket = delegate.createSocket(host, port, localAddress, localPort); 66 public Socket createSocket(InetAddress host, int port, InetAddress localAddress, int localPort) 68 Socket socket = delegate.createSocket(host, port, localAddress, localPort);
|
DelegatingSSLSocketFactory.java | 53 public SSLSocket createSocket(String host, int port, InetAddress localAddress, int localPort) 55 SSLSocket sslSocket = (SSLSocket) delegate.createSocket(host, port, localAddress, localPort); 68 public SSLSocket createSocket(InetAddress host, int port, InetAddress localAddress, int localPort) 70 SSLSocket sslSocket = (SSLSocket) delegate.createSocket(host, port, localAddress, localPort);
|
FallbackTestClientSocketFactory.java | 60 int localPort) throws IOException { 61 SSLSocket socket = super.createSocket(host, port, localHost, localPort); 71 InetAddress localAddress, int localPort) throws IOException { 72 SSLSocket socket = super.createSocket(address, port, localAddress, localPort);
|
/libcore/luni/src/main/java/javax/net/ |
DefaultSocketFactory.java | 44 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) 46 return new Socket(host, port, localHost, localPort); 56 int localPort) throws IOException { 57 return new Socket(address, port, localAddress, localPort);
|
SocketFactory.java | 91 * port {@code localPort}. 100 * @param localPort 110 public abstract Socket createSocket(String host, int port, InetAddress localHost, int localPort) 134 * localPort}. 143 * @param localPort 151 int localPort) throws IOException;
|
/external/conscrypt/src/main/java/org/conscrypt/ |
OpenSSLSocketFactoryImpl.java | 72 public Socket createSocket(String hostname, int port, InetAddress localHost, int localPort) 77 localPort, 90 int localPort) 95 localPort,
|
/libcore/support/src/test/java/tests/util/ |
DelegatingSSLSocketFactory.java | 79 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) 81 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port, localHost, localPort); 95 int localPort) throws IOException { 97 (SSLSocket) mDelegate.createSocket(address, port, localAddress, localPort);
|
/libcore/luni/src/main/java/java/net/ |
PlainDatagramSocketImpl.java | 47 public PlainDatagramSocketImpl(FileDescriptor fd, int localPort) { 49 this.localPort = localPort; 62 localPort = port; 64 localPort = IoBridge.getSocketLocalPort(fd); 73 protected void onBind(InetAddress localAddress, int localPort) { 74 this.localPort = localPort;
|
PlainSocketImpl.java | 69 public PlainSocketImpl(FileDescriptor fd, int localport, InetAddress addr, int port) { 71 this.localport = localport; 107 newImpl.localport = IoBridge.getSocketLocalPort(newImpl.fd); 134 this.localport = port; 136 this.localport = IoBridge.getSocketLocalPort(fd); 141 public void onBind(InetAddress localAddress, int localPort) { 142 localport = localPort; 413 localport = reply.getPort() [all...] |
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 { 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 [all...] |
DatagramSocketImpl.java | 36 protected int localPort; 42 localPort = -1; 87 return localPort; 276 protected void onBind(InetAddress localAddress, int localPort) {
|
/frameworks/av/include/media/stagefright/foundation/ |
ANetworkSession.h | 49 unsigned localPort, const sp<AMessage> ¬ify, int32_t *sessionID); 52 unsigned localPort, 68 unsigned localPort,
|
/libcore/luni/src/main/java/javax/net/ssl/ |
DefaultSSLSocketFactory.java | 61 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) 73 int localPort) throws IOException {
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/device/ |
DeviceBridge.java | 145 int localPort = nextLocalPort++; 147 device.createForward(localPort, Configuration.DEFAULT_SERVER_PORT); 148 devicePortMap.put(device, localPort); 166 final Integer localPort = devicePortMap.get(device); 167 if (localPort != null) { 169 device.removeForward(localPort, Configuration.DEFAULT_SERVER_PORT);
|
/device/generic/goldfish/libqemu/ |
test_guest_2.c | 52 int localPort = 0; 116 localPort = atoi(tcpPort); 117 if (localPort <= 0 || localPort > 65535) { 137 if (pipe_openSocket(pipe, localPort) < 0) {
|
/external/apache-http/src/org/apache/http/conn/scheme/ |
PlainSocketFactory.java | 90 InetAddress localAddress, int localPort, 104 if ((localAddress != null) || (localPort > 0)) { 107 if (localPort < 0) 108 localPort = 0; // indicates "any" 111 new InetSocketAddress(localAddress, localPort);
|
/external/apache-http/src/org/apache/http/conn/ |
MultihomePlainSocketFactory.java | 99 * @param localPort local port 106 InetAddress localAddress, int localPort, 120 if ((localAddress != null) || (localPort > 0)) { 123 if (localPort < 0) 124 localPort = 0; // indicates "any" 127 new InetSocketAddress(localAddress, localPort);
|
/external/apache-harmony/x-net/src/test/impl/java.injected/javax/net/ |
SocketFactoryTest.java | 91 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) 102 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
NsdManagerTest.java | 267 int localPort; 271 localPort = socket.getLocalPort(); 272 si.setPort(localPort); 279 if (DBG) Log.d(TAG, "Port = " + String.valueOf(localPort)); 356 assertTrue(lastEvent.mInfo.getPort() == localPort); 382 si.setPort(localPort);
|
/libcore/luni/src/main/java/java/nio/ |
DatagramChannelImpl.java | 67 private int localPort; 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);
|
SocketChannelImpl.java | 81 private int localPort; 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/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ |
SocketFactoryTest.java | 170 * InetAddress localHost, int localPort) 251 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) 263 InetAddress localAddress, int localPort) throws IOException {
|