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

1234

/libcore/luni/src/main/java/java/net/
H A DInetSocketAddress.java24 * This class represents the address of 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 the port number of the socket endpoint.
53 public InetSocketAddress(int port) { argument
54 this((InetAddress) null, port);
66 InetSocketAddress(InetAddress address, int port) argument
84 InetSocketAddress(String host, int port) argument
92 InetSocketAddress(String hostname, int port, boolean needResolved) argument
121 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.java68 * Constructs a new {@code ServerSocket} instance bound to the given {@code port} using a
69 * wildcard address. The backlog is set to 50. If {@code port == 0}, a port will be assigned by
74 public ServerSocket(int port) throws IOException { argument
75 this(port, DEFAULT_BACKLOG, Inet6Address.ANY);
79 * Constructs a new {@code ServerSocket} instance bound to the given {@code port} using a
81 * If {@code port == 0}, a port will be assigned by the OS.
85 public ServerSocket(int port, int backlog) throws IOException { argument
86 this(port, backlo
97 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...]
H A DURL.java87 private int port = -1; field in class:URL
196 * protocol's default port.
207 * protocol's default port.
210 * @param port the port, or {@code -1} for the protocol's default port.
215 public URL(String protocol, String host, int port, String file) throws MalformedURLException { argument
216 this(protocol, host, port, file, null);
221 * protocol's default port.
224 * @param port th
231 URL(String protocol, String host, int port, String file, URLStreamHandler handler) argument
305 set(String protocol, String host, int port, String file, String ref) argument
663 set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument
[all...]
H A DAuthenticator.java38 private int port; field in class:Authenticator
59 * Returns the port of the connection that requests authorization.
61 * @return port of the connection.
64 return this.port;
115 * port of the connection that requests authentication.
132 thisAuthenticator.port = rPort;
165 * port of the connection that requests authentication.
183 thisAuthenticator.port = rPort;
215 * port of the connection that requests authentication.
238 thisAuthenticator.port
[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.java760 * port.
764 * @param port
765 * the port number to connect to.
771 protected SSLSocket(String host, int port) throws IOException, UnknownHostException { argument
772 super(host, port);
779 * port.
783 * @param port
784 * the port number to connect to.
788 protected SSLSocket(InetAddress address, int port) throws IOException { argument
789 super(address, port);
811 SSLSocket(String host, int port, InetAddress clientAddress, int clientPort) argument
833 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/support/src/test/java/tests/util/
H A DDelegatingSSLSocketFactory.java64 public Socket createSocket(Socket s, String host, int port, boolean autoClose) argument
66 SSLSocket socket = (SSLSocket) mDelegate.createSocket(s, host, port, autoClose);
72 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { argument
73 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port);
79 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument
81 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port, localHost, localPort);
87 public Socket createSocket(InetAddress host, int port) throws IOException { argument
88 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port);
94 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, argument
97 (SSLSocket) mDelegate.createSocket(address, port, localAddres
[all...]
/libcore/luni/src/main/java/java/util/logging/
H A DSocketHandler.java46 * <li>java.util.logging.SocketHandler.encoding specifies the port number that
68 * the log manager, including the host name and port number. Default
72 * if failed to connect to the specified host and port.
74 * if the host name or port number is illegal.
81 "java.util.logging.SocketHandler.port"));
86 * and port number together with other properties read by the log manager.
91 * @param port
92 * the port number
94 * if failed to connect to the specified host and port.
96 * if the host name or port numbe
98 SocketHandler(String host, int port) argument
104 initSocket(String host, String port) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DInetSocketAddressTest.java50 legalHostPortPairs[i].host, legalHostPortPairs[i].port);
54 assertEquals(isa.getPort(), legalHostPortPairs[i].port);
68 illegalHostPortPairs[i].port);
70 + illegalHostPortPairs[i].host + ",port = "
71 + illegalHostPortPairs[i].port);
84 int port; field in class:InetSocketAddressTest.HostPortPair
86 public HostPortPair(String host, int port) { argument
88 this.port = port;
/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/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
H A DSSLEngineTest.java57 * SSLEngine object with null host and -1 port
69 * Test for <code>SSLEngine(String host, int port)</code> constructor
72 int port = 1010;
73 SSLEngine e = getEngine(null, port);
75 assertEquals(e.getPeerPort(), port);
82 e = getEngine(null, port);
86 e = getEngine(null, port);
92 * Test for <code>SSLEngine(String host, int port)</code> constructor
96 int port = 8080;
97 SSLEngine e = getEngine(host, port);
1021 getEngine(String host, int port) argument
[all...]
/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;
82 Socket s = sf.createSocket(webSite.host, webSite.port);
/libcore/luni/src/main/java/java/lang/
H A DSecurityManager.java40 public void checkAccept(String host, int port) { } argument
46 public void checkConnect(String host, int port) { } argument
48 public void checkConnect(String host, int port, Object context) { } argument
60 public void checkListen(int port) { } argument
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestSSLContext.java92 public final int port; field in class:TestSSLContext
106 int port) {
119 this.port = port;
133 * listening provided host and port.
186 int port = serverSocket.getLocalPort();
195 serverSocket, host, port);
282 public Socket createSocket(String host, int port)
284 return set(sf.createSocket(host, port));
286 public Socket createSocket(String host, int port, InetAddres
94 TestSSLContext(KeyStore clientKeyStore, char[] clientStorePassword, KeyStore serverKeyStore, char[] serverStorePassword, KeyManager[] clientKeyManagers, KeyManager[] serverKeyManagers, X509TrustManager clientTrustManager, X509TrustManager serverTrustManager, SSLContext clientContext, SSLContext serverContext, SSLServerSocket serverSocket, InetAddress host, int port) argument
[all...]

Completed in 551 milliseconds

1234