/libcore/luni/src/main/java/javax/net/ |
H A D | DefaultServerSocketFactory.java | 32 public ServerSocket createServerSocket(int port) throws IOException { argument 33 return new ServerSocket(port); 37 public ServerSocket createServerSocket(int port, int backlog) throws IOException { argument 38 return new ServerSocket(port, backlog); 42 public ServerSocket createServerSocket(int port, int backlog, InetAddress iAddress) argument 44 return new ServerSocket(port, backlog, iAddress);
|
H A D | DefaultSocketFactory.java | 39 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { argument 40 return new Socket(host, port); 44 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument 46 return new Socket(host, port, localHost, localPort); 50 public Socket createSocket(InetAddress host, int port) throws IOException { argument 51 return new Socket(host, port); 55 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, argument 57 return new Socket(address, port, localAddress, localPort);
|
H A D | ServerSocketFactory.java | 66 * Creates a new server socket which is bound to the given port with a 69 * @param port the port on which the created socket has to listen. 74 public abstract ServerSocket createServerSocket(int port) throws IOException; argument 77 * Creates a new server socket which is bound to the given port and 80 * @param port the port on which the created socket has to listen. 86 public abstract ServerSocket createServerSocket(int port, int backlog) throws IOException; argument 90 * specified port and configures its maximum of queued connections. 92 * @param port th 100 createServerSocket(int port, int backlog, InetAddress iAddress) argument [all...] |
H A D | SocketFactory.java | 69 * the parameters {@code host} and {@code port}. The socket is bound to any 70 * available local address and port. 74 * @param port 75 * the port number of the remote host at which the socket is 84 public abstract Socket createSocket(String host, int port) throws IOException, argument 89 * the parameters {@code host} and {@code port}. The socket is bound to the 91 * port {@code localPort}. 95 * @param port 96 * the port number of the remote host at which the socket is 101 * the port numbe 110 createSocket(String host, int port, InetAddress localHost, int localPort) argument 127 createSocket(InetAddress host, int port) argument 150 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument [all...] |
/libcore/crypto/src/main/java/org/conscrypt/ |
H A D | SSLClientSessionCache.java | 35 * Gets data from a pre-existing session for a given server host and port. 38 * @param port from {@link javax.net.ssl.SSLSession#getPeerPort()} 42 public byte[] getSessionData(String host, int port); argument
|
H A D | OpenSSLServerSocketFactoryImpl.java | 57 public ServerSocket createServerSocket(int port) throws IOException { argument 58 return new OpenSSLServerSocketImpl(port, (SSLParametersImpl) sslParameters.clone()); 61 public ServerSocket createServerSocket(int port, int backlog) argument 63 return new OpenSSLServerSocketImpl(port, 68 public ServerSocket createServerSocket(int port, argument 71 return new OpenSSLServerSocketImpl(port,
|
H A D | OpenSSLSocketFactoryImpl.java | 63 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { argument 64 return new OpenSSLSocketImpl(host, port, (SSLParametersImpl) sslParameters.clone()); 67 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument 70 port, 76 public Socket createSocket(InetAddress host, int port) throws IOException { argument 77 return new OpenSSLSocketImpl(host, port, (SSLParametersImpl) sslParameters.clone()); 81 int port, 86 port, 92 public Socket createSocket(Socket s, String host, int port, boolean autoClose) argument 96 port, 80 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument [all...] |
H A D | SSLServerSocketFactoryImpl.java | 95 public ServerSocket createServerSocket(int port) throws IOException { argument 99 return new SSLServerSocketImpl(port, 107 public ServerSocket createServerSocket(int port, int backlog) argument 112 return new SSLServerSocketImpl(port, backlog, 120 public ServerSocket createServerSocket(int port, int backlog, argument 125 return new SSLServerSocketImpl(port, backlog, iAddress,
|
H A D | SSLSocketFactoryImpl.java | 86 public Socket createSocket(Socket s, String host, int port, argument 91 return new SSLSocketWrapper(s, host, port, autoClose, (SSLParametersImpl) sslParameters 112 public Socket createSocket(String host, int port) argument 117 return new SSLSocketImpl(host, port, 125 public Socket createSocket(String host, int port, argument 131 return new SSLSocketImpl(host, port, localHost, localPort, 139 public Socket createSocket(InetAddress host, int port) argument 144 return new SSLSocketImpl(host, port, 152 public Socket createSocket(InetAddress address, int port, argument 157 return new SSLSocketImpl(address, port, localAddres [all...] |
H A D | ClientSessionContext.java | 24 * Caches client sessions. Indexes by host and port. Users are typically 25 * looking to reuse any session for a given host and port. 30 * Sessions indexed by host and port. Protect from concurrent 52 int port = session.getPeerPort(); 56 HostAndPort hostAndPortKey = new HostAndPort(host, port); 63 * Finds a cached session for the given host name and port. 66 * @param port of server 69 public SSLSession getSession(String host, int port) { argument 74 HostAndPort hostAndPortKey = new HostAndPort(host, port); 84 byte[] data = persistentCache.getSessionData(host, port); 126 final int port; field in class:ClientSessionContext.HostAndPort 128 HostAndPort(String host, int port) argument [all...] |
H A D | SSLContextImpl.java | 113 public SSLEngine engineCreateSSLEngine(String host, int port) { argument 119 return new SSLEngineImpl(host, port, p);
|
/libcore/luni/src/main/java/java/security/cert/ |
H A D | LDAPCertStoreParameters.java | 26 // Default LDAP server port number 31 // LDAP server port number for this cert store 32 private final int port; field in class:LDAPCertStoreParameters 36 * server name and port. 40 * @param port 41 * the port. 45 public LDAPCertStoreParameters(String serverName, int port) { argument 49 this.port = port; 57 * The default parameters are server name "localhost" and port 38 [all...] |
/libcore/luni/src/main/java/java/util/logging/ |
H A D | SocketHandler.java | 45 * <li>java.util.logging.SocketHandler.encoding specifies the port number that 67 * the log manager, including the host name and port number. Default 71 * if failed to connect to the specified host and port. 73 * if the host name or port number is illegal. 80 "java.util.logging.SocketHandler.port")); 85 * and port number together with other properties read by the log manager. 90 * @param port 91 * the port number 93 * if failed to connect to the specified host and port. 95 * if the host name or port numbe 97 SocketHandler(String host, int port) argument 103 initSocket(String host, String port) argument [all...] |
/libcore/luni/src/main/java/javax/net/ssl/ |
H A D | DefaultSSLServerSocketFactory.java | 48 public ServerSocket createServerSocket(int port) throws IOException { argument 53 public ServerSocket createServerSocket(int port, int backlog) throws IOException { argument 58 public ServerSocket createServerSocket(int port, int backlog, InetAddress iAddress) 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
|
H A D | DefaultSSLSocketFactory.java | 50 public Socket createSocket(Socket s, String host, int port, boolean autoClose) argument 56 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { argument 61 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument 67 public Socket createSocket(InetAddress host, int port) throws IOException { argument 72 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, argument
|
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 | SSLServerSocket.java | 44 * Creates a TCP server socket on the specified port with the default 47 * @param port 48 * the port to listen on. 52 protected SSLServerSocket(int port) throws IOException { argument 53 super(port); 59 * Creates a TCP server socket on the specified port using the specified 62 * @param port 63 * the port to listen on. 69 protected SSLServerSocket(int port, int backlog) throws IOException { argument 70 super(port, backlo 89 SSLServerSocket(int port, int backlog, InetAddress address) argument [all...] |
/libcore/luni/src/test/java/tests/api/javax/net/ |
H A D | ServerSocketFactoryTest.java | 114 public ServerSocket createServerSocket(int port) throws IOException { argument 119 public ServerSocket createServerSocket(int port, int backlog) argument 125 public ServerSocket createServerSocket(int port, int backlog, argument
|
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/test/java/libcore/java/net/ |
H A D | OldAndroidDatagramTest.java | 86 * Creates a new Relfector object for the given local address and port. 88 public Reflector(int port, InetAddress address) { argument 91 socket = new DatagramSocket(port, address);
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
H A D | SSLContextSpiImpl.java | 61 public SSLEngine engineCreateSSLEngine(String host, int port) { argument 64 if (port < 0 || port > max) { 65 throw new IllegalArgumentException("Illegal port"); 71 return new tmpSSLEngine(host, port);
|
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | SSLSocketBenchmark.java | 44 final int port; field in class:SSLSocketBenchmark.WebSite 55 this.port = 443; 58 this.port = p; 59 portString = ":" + port; 96 Socket s = sf.createSocket(webSite.host, webSite.port);
|
/libcore/luni/src/main/java/java/net/ |
H A D | DatagramPacket.java | 46 private int port = -1; // The default port number is -1 field in class:DatagramPacket 79 * Constructs a new {@code DatagramPacket} object to send data to the port 93 * the port of the target host. 102 * Constructs a new {@code DatagramPacket} object to send data to the port 113 * @param port 114 * the port of the target host. 116 public DatagramPacket(byte[] data, int length, InetAddress host, int port) { argument 117 this(data, 0, length, host, port); 158 * Gets the port numbe [all...] |
H A D | InetSocketAddress.java | 24 * This class represents a socket endpoint described by a IP address and a port 34 private final int port; field in class:InetSocketAddress 43 this.port = -1; 47 * Creates a socket endpoint with the given port number {@code port} and 48 * no specified address. The range for valid port numbers is between 0 and 51 * @param port 52 * the specified port number to which this socket is bound. 54 public InetSocketAddress(int port) { argument 55 this((InetAddress) null, port); 69 InetSocketAddress(InetAddress address, int port) argument 89 InetSocketAddress(String host, int port) argument 97 InetSocketAddress(String hostname, int port, boolean needResolved) argument 129 createUnresolved(String host, int port) argument [all...] |