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

12345

/libcore/ojluni/src/main/java/javax/net/
H A DServerSocketFactory.java103 * Returns a server socket bound to the specified port.
108 * method is called with the <code>port</code> argument as its
112 * @param port the port to listen to
117 * @throws IllegalArgumentException if the port parameter is outside the
118 * specified range of valid port values, which is between 0 and
123 public abstract ServerSocket createServerSocket(int port) argument
128 * Returns a server socket bound to the specified port, and uses the
137 * method is called with the <code>port</code> argument as its
141 * @param port th
154 createServerSocket(int port, int backlog) argument
192 createServerSocket(int port, int backlog, InetAddress ifAddress) argument
215 createServerSocket(int port) argument
221 createServerSocket(int port, int backlog) argument
228 createServerSocket(int port, int backlog, InetAddress ifAddress) argument
[all...]
H A DSocketFactory.java142 * at the specified remote port. This socket is configured using
146 * method is called with the host address and <code>port</code>
151 * @param port the server port
157 * @throws IllegalArgumentException if the port parameter is outside the
158 * specified range of valid port values, which is between 0 and
163 public abstract Socket createSocket(String host, int port) argument
169 * on the specified remote port.
170 * The socket will also be bound to the local address and port supplied.
175 * method is called with the host address and <code>port</cod
195 createSocket(String host, int port, InetAddress localHost, int localPort) argument
221 createSocket(InetAddress host, int port) argument
252 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument
276 createSocket(String host, int port) argument
282 createSocket(InetAddress address, int port) argument
288 createSocket(String host, int port, InetAddress clientAddress, int clientPort) argument
295 createSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort) argument
[all...]
/libcore/luni/src/main/native/
H A DNetworkUtilities.h21 // 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);
29 bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port,
38 bool inetAddressToSockaddrVerbatim(JNIEnv* env, jobject inetAddress, int port,
H A DNetworkUtilities.cpp31 jobject sockaddrToInetAddress(JNIEnv* env, const sockaddr_storage& ss, jint* port) { argument
46 return sockaddrToInetAddress(env, tmp, port);
71 if (port != NULL) {
72 *port = sin_port;
91 static bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len, bool map) { argument
146 sin6.sin6_port = htons(port);
182 sin.sin_port = htons(port);
190 bool inetAddressToSockaddrVerbatim(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len) { argument
191 return inetAddressToSockaddr(env, inetAddress, port, ss, sa_len, false);
194 bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storag argument
[all...]
/libcore/ojluni/src/main/java/java/security/cert/
H A DLDAPCertStoreParameters.java32 * name and port number) to implementations of the LDAP {@code CertStore}
52 * the port number of the LDAP server
54 private int port; field in class:LDAPCertStoreParameters
66 * @param port the port number of the LDAP server
70 public LDAPCertStoreParameters(String serverName, int port) { argument
74 this.port = port;
79 * specified server name and a default port of 389.
91 * default parameter values (server name "localhost", port 38
[all...]
/libcore/support/src/test/java/tests/net/
H A DDelegatingSocketFactory.java53 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { argument
54 Socket socket = mDelegate.createSocket(host, port);
59 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument
61 Socket socket = mDelegate.createSocket(host, port, localHost, localPort);
66 public Socket createSocket(InetAddress host, int port) throws IOException { argument
67 Socket socket = mDelegate.createSocket(host, port);
72 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, argument
74 Socket socket = mDelegate.createSocket(address, port, localAddress, localPort);
H A DDelegatingSSLSocketFactory.java65 public Socket createSocket(Socket s, String host, int port, boolean autoClose) argument
67 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);
78 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument
80 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port, localHost, localPort);
85 public Socket createSocket(InetAddress host, int port) throws IOException { argument
86 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port);
91 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, argument
93 SSLSocket socket = (SSLSocket) mDelegate.createSocket(address, port, localAddres
[all...]
/libcore/ojluni/src/main/java/sun/net/util/
H A DURLUtil.java61 int port = url.getPort();
62 if (port == -1) {
63 /* if no port is specificed then use the protocols
65 port = url.getDefaultPort();
67 if (port != -1) {
68 strForm.append(":").append(port);
/libcore/ojluni/src/main/java/java/net/
H A DInetSocketAddress.java37 * This class implements an IP Socket Address (IP address + port number)
38 * It can also be a pair (hostname + port number), in which case an attempt
62 // The port number of the Socket Address
63 private int port; field in class:InetSocketAddress.InetSocketAddressHolder
65 private InetSocketAddressHolder(String hostname, InetAddress addr, int port) { argument
68 this.port = port;
72 return port;
106 return hostname + ":" + port;
108 return addr.toString() + ":" + port;
142 checkPort(int port) argument
174 InetSocketAddress(int port) argument
193 InetSocketAddress(InetAddress addr, int port) argument
226 InetSocketAddress(String hostname, int port) argument
239 InetSocketAddress(int port, String hostname) argument
264 createUnresolved(String host, int port) argument
[all...]
H A DDatagramPacket.java63 int port; field in class:DatagramPacket
81 this.port = -1;
101 * specified port number on the specified host. The
109 * @param port the destination port number.
115 InetAddress address, int port) {
118 setPort(port);
125 * specified port number on the specified host. The
151 * {@code length} to the specified port number on the specified
163 * @param port th
114 DatagramPacket(byte buf[], int offset, int length, InetAddress address, int port) argument
166 DatagramPacket(byte buf[], int length, InetAddress address, int port) argument
[all...]
H A DAbstractPlainSocketImpl.java112 * Creates a socket and connects it to the specified port on
115 * @param port the specified port
117 protected void connect(String host, int port) argument
123 this.port = port;
126 connectToAddress(address, port, timeout);
142 * the specified port.
144 * @param port the specified port
146 connect(InetAddress address, int port) argument
196 connectToAddress(InetAddress address, int port, int timeout) argument
346 doConnect(InetAddress address, int port, int timeout) argument
464 setPort(int port) argument
725 socketConnect(InetAddress address, int port, int timeout) argument
727 socketBind(InetAddress address, int port) argument
[all...]
H A DCookieManager.java220 // Let's check the authorize port list if it exists
223 int port = uri.getPort();
224 if (port == -1) {
225 port = "https".equals(uri.getScheme()) ? 443 : 80;
227 if (isInPortList(ports, port)) {
318 int port = uri.getPort();
319 if (port == -1) {
320 port = "https".equals(uri.getScheme()) ? 443 : 80;
323 // Empty port list means this should be restricted
324 // to the incoming URI port
365 isInPortList(String lst, int port) argument
[all...]
/libcore/ojluni/src/main/java/java/util/logging/
H A DSocketHandler.java61 * <li> &lt;handler-name&gt;.port
62 * specifies the target TCP port to use (no default). </li>
86 private int port; field in class:SocketHandler
108 port = manager.getIntProperty(cname + ".port", 0);
116 * @throws IllegalArgumentException if the host or port are invalid or
119 * host and port.
129 System.err.println("SocketHandler: connect failed to " + host + ":" + port);
136 * Construct a <tt>SocketHandler</tt> using a specified host and port.
140 * and port argument
150 SocketHandler(String host, int port) argument
[all...]
/libcore/ojluni/src/main/java/javax/net/ssl/
H A DSSLSocket.java883 * Constructs a TCP connection to a named host at a specified port.
887 * method is called with the host address and <code>port</code>
892 * @param port number of the server's port
897 * @throws IllegalArgumentException if the port parameter is outside the
898 * specified range of valid port values, which is between 0 and
902 protected SSLSocket(String host, int port) argument
904 { super(host, port); }
910 * and port. This acts as the SSL client.
913 * method is called with the host address and <code>port</cod
927 SSLSocket(InetAddress address, int port) argument
958 SSLSocket(String host, int port, InetAddress clientAddress, int clientPort) argument
989 SSLSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort) argument
[all...]
H A DSSLServerSocket.java77 * Create a TCP server socket on a port, using the default
82 * A port number of <code>0</code> creates a socket on any free port.
85 * method is called with the <code>port</code> argument as its
89 * @param port the port on which to listen
93 * @throws IllegalArgumentException if the port parameter is outside the
94 * specified range of valid port values, which is between 0 and
98 protected SSLServerSocket(int port) argument
100 { super(port); }
134 SSLServerSocket(int port, int backlog) argument
179 SSLServerSocket(int port, int backlog, InetAddress address) argument
[all...]
/libcore/ojluni/src/main/java/sun/net/
H A DNetHooks.java61 int port)
69 int port)
87 int port)
91 // provider.implBeforeTcpBind(fdObj, address, port);
99 int port)
103 // provider.implBeforeTcpConnect(fdObj, address, port);
85 beforeTcpBind(FileDescriptor fdObj, InetAddress address, int port) argument
97 beforeTcpConnect(FileDescriptor fdObj, InetAddress address, int port) argument
H A DNetworkClient.java132 public void openServer(String server, int port) argument
136 serverSocket = doConnect (server, port);
151 protected Socket doConnect (String server, int port) argument
165 // server & port will be the proxy address and port
175 s.connect(new InetSocketAddress(server, port), connectTimeout);
178 s.connect(new InetSocketAddress(server, port), defaultConnectTimeout);
180 s.connect(new InetSocketAddress(server, port));
228 /** Create connection with host <i>host</i> on port <i>port</
229 NetworkClient(String host, int 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);
1029 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;
83 Socket s = sf.createSocket(webSite.host, webSite.port);
/libcore/ojluni/src/main/java/java/lang/
H A DSecurityManager.java159 public void checkConnect(String host, int port) { } argument
161 public void checkConnect(String host, int port, Object context) { } argument
163 public void checkListen(int port) { } argument
165 public void checkAccept(String host, int port) { } argument
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DFileDescriptorHolderSocketImpl.java62 protected void connect(String host, int port) throws IOException { argument
67 protected void connect(InetAddress address, int port) throws IOException { argument
77 protected void bind(InetAddress host, int port) throws IOException { argument
H A DUnixAsynchronousServerSocketChannelImpl.java55 private final Port port; field in class:UnixAsynchronousServerSocketChannelImpl
81 UnixAsynchronousServerSocketChannelImpl(Port port) argument
84 super(port);
92 this.port = port;
96 port.register(fdVal, this);
106 port.unregister(fdVal);
149 return port;
176 port.startPoll(fdVal, Net.POLLIN);
235 ch = new UnixAsynchronousSocketChannelImpl(port, newf
[all...]
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestSSLContext.java100 public final int port; field in class:TestSSLContext
191 public InetSocketAddress getLoopbackAsHostname(String hostname, int port) throws IOException, ClassNotFoundException { argument
192 InetSocketAddress addr = new InetSocketAddress(InetAddress.getLoopbackAddress(), port);
215 int port) {
228 this.port = port;
242 * listening provided host and port.
295 int port = serverSocket.getLocalPort();
304 serverSocket, host, port);
391 public Socket createSocket(String host, int port)
203 TestSSLContext(KeyStore clientKeyStore, char[] clientStorePassword, KeyStore serverKeyStore, char[] serverStorePassword, KeyManager[] clientKeyManagers, KeyManager[] serverKeyManagers, X509ExtendedTrustManager clientTrustManager, X509ExtendedTrustManager serverTrustManager, SSLContext clientContext, SSLContext serverContext, SSLServerSocket serverSocket, InetAddress host, int port) argument
[all...]

Completed in 694 milliseconds

12345