Searched refs:port (Results 1 - 25 of 92) sorted by relevance

1234

/libcore/luni/src/main/java/java/net/
H A DInetSocketAddress.java24 * 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...]
H A DSocketImpl.java30 * ServerSocket} on a well known port (referred to as listener) used to
42 * The remote port this socket is connected to.
44 protected int port; field in class:SocketImpl
52 * The local port this socket is connected to.
78 * Binds this socket to the specified local host address and port number.
82 * @param port
83 * the port on the local machine to bind this socket to.
87 protected abstract void bind(InetAddress address, int port) throws IOException; argument
98 * Connects this socket to the specified remote host and port number.
102 * @param port
107 connect(String host, int port) argument
120 connect(InetAddress address, int port) argument
[all...]
H A DProxySelectorImpl.java44 int port = -1;
49 port = 80;
51 proxy = lookupProxy("http.proxyHost", "http.proxyPort", Proxy.Type.HTTP, port);
53 port = 443;
55 proxy = lookupProxy("https.proxyHost", "https.proxyPort", Proxy.Type.HTTP, port);
57 port = 80; // not 21 as you might guess
59 proxy = lookupProxy("ftp.proxyHost", "ftp.proxyPort", Proxy.Type.HTTP, port);
76 proxy = lookupProxy("proxyHost", "proxyPort", Proxy.Type.HTTP, port);
100 int port = getSystemPropertyInt(portKey, defaultPort);
101 return new Proxy(type, InetSocketAddress.createUnresolved(host, port));
[all...]
H A DServerSocket.java64 * Constructs a new {@code ServerSocket} instance bound to the given {@code port}.
65 * The backlog is set to 50. If {@code port == 0}, a port will be assigned by the OS.
69 public ServerSocket(int port) throws IOException { argument
70 this(port, DEFAULT_BACKLOG, Inet4Address.ANY);
74 * Constructs a new {@code ServerSocket} instance bound to the given {@code port}.
76 * If {@code port == 0}, a port will be assigned by the OS.
80 public ServerSocket(int port, int backlog) throws IOException { argument
81 this(port, backlo
92 ServerSocket(int port, int backlog, InetAddress localAddress) argument
[all...]
H A DDatagramPacket.java46 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...]
/libcore/luni/src/main/java/javax/net/
H A DDefaultServerSocketFactory.java32 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 DDefaultSocketFactory.java39 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 DServerSocketFactory.java66 * 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 DSocketFactory.java69 * 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/luni/src/main/java/java/security/cert/
H A DLDAPCertStoreParameters.java26 // 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/javax/net/ssl/
H A DSSLServerSocket.java44 * 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...]
H A DSSLSocket.java43 * port.
47 * @param port
48 * the port number to connect to.
54 protected SSLSocket(String host, int port) throws IOException, UnknownHostException { argument
55 super(host, port);
62 * port.
66 * @param port
67 * the port number to connect to.
71 protected SSLSocket(InetAddress address, int port) throws IOException { argument
72 super(address, port);
94 SSLSocket(String host, int port, InetAddress clientAddress, int clientPort) argument
116 SSLSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort) argument
[all...]
H A DDefaultSSLSocketFactory.java50 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 DDefaultSSLServerSocketFactory.java48 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
/libcore/luni/src/main/native/
H A DNetworkUtilities.h21 // InetUnixAddress (AF_UNIX). If 'port' is non-NULL and the address family includes a notion
22 // of port number, *port will be set to the port number.
23 jobject sockaddrToInetAddress(JNIEnv* env, const sockaddr_storage& ss, int* port);
30 bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port,
39 bool inetAddressToSockaddrVerbatim(JNIEnv* env, jobject inetAddress, int port,
/libcore/crypto/src/main/java/org/conscrypt/
H A DClientSessionContext.java24 * 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 DOpenSSLSocketFactoryImpl.java63 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 DSSLClientSessionCache.java35 * 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 DOpenSSLServerSocketFactoryImpl.java57 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 DSSLServerSocketFactoryImpl.java95 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 DSSLSocketFactoryImpl.java86 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 DSSLServerSocketImpl.java53 * @param port: int
57 protected SSLServerSocketImpl(int port, SSLParametersImpl sslParameters) argument
59 super(port);
65 * @param port: int
70 protected SSLServerSocketImpl(int port, int backlog, argument
72 super(port, backlog);
78 * @param port: int
84 protected SSLServerSocketImpl(int port, int backlog, argument
88 super(port, backlog, iAddress);
/libcore/luni/src/main/java/java/util/logging/
H A DSocketHandler.java45 * <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/support/src/test/java/org/apache/harmony/xnet/tests/support/
H A DSSLContextSpiImpl.java61 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 DSSLSocketBenchmark.java44 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);

Completed in 703 milliseconds

1234