/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
H A D | SSLSocketImpl.java | 98 * @param port: int 105 protected SSLSocketImpl(String host, int port, SSLParametersImpl sslParameters) argument 107 super(host, port); 109 this.wrappedPort = port; 117 * @param port: int 126 protected SSLSocketImpl(String host, int port, argument 130 super(host, port, localHost, localPort); 132 this.wrappedPort = port; 140 * @param port: int 147 protected SSLSocketImpl(InetAddress host, int port, argument 168 SSLSocketImpl(InetAddress address, int port, InetAddress localAddress, int localPort, SSLParametersImpl sslParameters) argument [all...] |
H A D | OpenSSLSocketImpl.java | 119 protected OpenSSLSocketImpl(String host, int port, SSLParametersImpl sslParameters) argument 121 super(host, port); 126 protected OpenSSLSocketImpl(InetAddress address, int port, SSLParametersImpl sslParameters) argument 128 super(address, port); 134 protected OpenSSLSocketImpl(String host, int port, argument 137 super(host, port, clientAddress, clientPort); 142 protected OpenSSLSocketImpl(InetAddress address, int port, argument 145 super(address, port, clientAddress, clientPort); 154 protected OpenSSLSocketImpl(Socket socket, String host, int port, argument 158 this.wrappedPort = port; [all...] |
H A D | OpenSSLSocketImplWrapper.java | 33 protected OpenSSLSocketImplWrapper(Socket socket, String host, int port, argument 35 super(socket, host, port, autoClose, sslParameters);
|
H A D | FileClientSessionCache.java | 46 * This cache creates one file per SSL session using "host.port" for 120 * Gets the file name for the given host and port. 122 private static String fileName(String host, int port) { argument 126 return host + "." + port; 129 public synchronized byte[] getSessionData(String host, int port) { argument 136 String name = fileName(host, port);
|
H A D | SSLSocketWrapper.java | 35 protected SSLSocketWrapper(Socket socket, String host, int port, boolean autoClose, argument 37 super(host, port, sslParameters);
|
/libcore/luni/src/main/native/ |
H A D | libcore_net_RawSocket.cpp | 151 jbyteArray packet, jint offset, jint byteCount, jint port, 187 if (port != -1) { 188 // quick check for UDP type & UDP port 200 if (destPort != port) { 201 return 0; // something other than requested port 150 RawSocket_recvPacket(JNIEnv* env, jclass, jobject fileDescriptor, jbyteArray packet, jint offset, jint byteCount, jint port, jint timeout_millis) argument
|
/libcore/luni/src/main/java/java/net/ |
H A D | Socks4Message.java | 77 * Returns the request's port number. 84 * Set the request's port number. 86 public void setPort(int port) { argument 87 Memory.pokeShort(buffer, INDEX_PORT, (short) port, ByteOrder.BIG_ENDIAN);
|
H A D | URI.java | 88 * has an authority, user info, host, port, path or query. An opaque URIs may 120 * A URI's host, port and scheme are not eligible for encoding and must not 186 private transient int port = -1; field in class:URI 235 public URI(String scheme, String userInfo, String host, int port, String path, String query, argument 253 if (userInfo != null || host != null || port != -1) { 270 if (port != -1) { 272 uri.append(port); 346 * info, host and port: 347 * [user-info@][host][:port] 427 * Breaks this URI's authority into user info, host and port part [all...] |
H A D | MulticastSocket.java | 38 * Constructs a multicast socket, bound to any available port on the 48 * Constructs a multicast socket, bound to the specified {@code port} on the 53 public MulticastSocket(int port) throws IOException { argument 54 super(port); 59 * Constructs a {@code MulticastSocket} bound to the address and port specified by
|
/libcore/luni/src/main/java/javax/net/ssl/ |
H A D | SSLEngine.java | 43 * port. 47 * @param port 48 * the port of the host. 50 protected SSLEngine(String host, int port) { argument 52 this.peerPort = port; 65 * Returns the port number of the peer host. 67 * @return the port number of the peer host, or {@code -1} is none is
|
H A D | SSLContextSpi.java | 68 * specified hostname and port. 72 * @param port 73 * the port 78 protected abstract SSLEngine engineCreateSSLEngine(String host, int port); argument
|
H A D | SSLSocketFactory.java | 104 * to the specified host at the specified port. 110 * @param port 111 * the port number. 122 public abstract Socket createSocket(Socket s, String host, int port, boolean autoClose) argument
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | Posix.java | 34 public native void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; argument 38 public native void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; argument 142 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { argument 144 return sendtoBytes(fd, buffer, buffer.position(), buffer.remaining(), flags, inetAddress, port); 146 return sendtoBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + buffer.position(), buffer.remaining(), flags, inetAddress, port); 149 public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { argument 151 return sendtoBytes(fd, bytes, byteOffset, byteCount, flags, inetAddress, port); 153 private native int sendtoBytes(FileDescriptor fd, Object buffer, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException; argument
|
H A D | ForwardingOs.java | 40 public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { os.bind(fd, address, port); } argument 44 public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { os.connect(fd, address, port); } argument 108 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { return os.sendto(fd, buffer, flags, inetAddress, port); } argument 109 public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { return os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port); } argument
|
H A D | Os.java | 31 public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; argument 35 public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; argument 100 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException; argument 101 public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException; argument
|
/libcore/luni/src/main/java/libcore/net/http/ |
H A D | HttpsURLConnectionImpl.java | 45 protected HttpsURLConnectionImpl(URL url, int port) { argument 47 delegate = new HttpUrlConnectionDelegate(url, port); 50 protected HttpsURLConnectionImpl(URL url, int port, Proxy proxy) { argument 52 delegate = new HttpUrlConnectionDelegate(url, port, proxy); 375 private HttpUrlConnectionDelegate(URL url, int port) { argument 376 super(url, port); 379 private HttpUrlConnectionDelegate(URL url, int port, Proxy proxy) { argument 380 super(url, port, proxy);
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | OldAndroidDatagramTest.java | 84 * Creates a new Relfector object for the given local address and port. 86 public Reflector(int port, InetAddress address) { argument 89 socket = new DatagramSocket(port, address);
|
H A D | OldURLStreamHandlerTest.java | 215 int port, 218 super.setURL(u, protocol, host, port, file, ref); 224 int port, 230 super.setURL(u, protocol, host, port, authority, 212 setURL(URL u, String protocol, String host, int port, String file, String ref) argument 221 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument
|
H A D | OldServerSocketTest.java | 99 int port; field in class:OldServerSocketTest.SSClient 102 port = prt; 109 cs = new Socket(InetAddress.getLocalHost().getHostName(), port); 325 protected void startClient(int port) { argument 326 t = new Thread(new SSClient(port), "SSClient");
|
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
H A D | SSLSocketTest.java | 60 * javax.net.ssl.SSLSocket#SSLSocket(InetAddress address, int port) 87 * javax.net.ssl.SSLSocket#SSLSocket(InetAddress address, int port, 135 * javax.net.ssl.SSLSocket#SSLSocket(String host, int port) 168 * javax.net.ssl.SSLSocket#SSLSocket(String host, int port, InetAddress clientAddress, 506 * port, requests client authentication (if specified), and read 256 bytes 608 private SSLSocket getSSLSocket(InetAddress host, int port) throws IOException { argument 609 return (SSLSocket) SSLSocketFactory.getDefault().createSocket(host, port); 612 private SSLSocket getSSLSocket(String host, int port) throws UnknownHostException, IOException { argument 613 return (SSLSocket) SSLSocketFactory.getDefault().createSocket(host, port); 616 private SSLSocket getSSLSocket(InetAddress host, int port, InetAddres argument 624 getSSLSocket(String host, int port, InetAddress localHost, int localPort) argument [all...] |
/libcore/luni/src/test/java/tests/api/javax/net/ |
H A D | SocketFactoryTest.java | 169 * javax.net.SocketFactory#createSocket(String host, int port, 246 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { argument 251 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument 257 public Socket createSocket(InetAddress host, int port) throws IOException { argument 262 public Socket createSocket(InetAddress address, int port, argument
|
/libcore/luni/src/main/java/java/nio/ |
H A D | SocketChannelImpl.java | 123 int port = 0; 126 port = connectAddress.getPort(); 128 socket = new SocketAdapter(new PlainSocketImpl(fd, localPort, addr, port), this); 165 int port = inetSocketAddress.getPort(); 177 finished = IoBridge.connect(fd, normalAddr, port); 245 int port = connectAddress.getPort(); 246 finished = IoBridge.isConnected(fd, inetAddress, port, 0, 0); // Return immediately.
|
/libcore/support/src/test/java/tests/http/ |
H A D | MockWebServer.java | 79 private int port = -1; field in class:MockWebServer 82 if (port == -1) { 83 throw new IllegalStateException("Cannot retrieve port before calling play()"); 85 return port; 171 * @param port the port to listen to, or 0 for any available port. 172 * Automated tests should always use port 0 to avoid flakiness when a 173 * specific port is unavailable. 175 public void play(int port) throw argument [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
H A D | SSLSocketTest.java | 277 c.port); 321 c.port); 360 clientContext.getSocketFactory().createSocket(c.host, c.port); 380 c.clientContext.getSocketFactory().createSocket(c.host, c.port); 485 c.clientContext.getSocketFactory().createSocket(c.host, c.port); 510 c.port); 547 c.port); 602 c.port); 632 c.port); 704 c.port); [all...] |
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
H A D | mySSLSession.java | 31 public mySSLSession(String host, int port, byte[] id) { argument 35 namePort = port;
|