/libcore/ojluni/src/main/java/javax/net/ |
H A D | ServerSocketFactory.java | 103 * 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 D | SocketFactory.java | 141 * at the specified remote port. This socket is configured using 145 * method is called with the host address and <code>port</code> 150 * @param port the server port 156 * @throws IllegalArgumentException if the port parameter is outside the 157 * specified range of valid port values, which is between 0 and 162 public abstract Socket createSocket(String host, int port) argument 168 * on the specified remote port. 169 * The socket will also be bound to the local address and port supplied. 174 * method is called with the host address and <code>port</cod 194 createSocket(String host, int port, InetAddress localHost, int localPort) argument 220 createSocket(InetAddress host, int port) argument 251 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument 275 createSocket(String host, int port) argument 281 createSocket(InetAddress address, int port) argument 287 createSocket(String host, int port, InetAddress clientAddress, int clientPort) argument 294 createSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort) argument [all...] |
/libcore/ojluni/src/main/java/sun/net/ |
H A D | NetHooks.java | 60 // int port) 68 // int port) 85 int port) 89 // provider.implBeforeTcpBind(fdObj, address, port); 97 int port) 101 // provider.implBeforeTcpConnect(fdObj, address, port); 83 beforeTcpBind(FileDescriptor fdObj, InetAddress address, int port) argument 95 beforeTcpConnect(FileDescriptor fdObj, InetAddress address, int port) argument
|
H A D | TransferProtocolClient.java | 134 /** standard constructor to host <i>host</i>, port <i>port</i>. */ 135 public TransferProtocolClient(String host, int port) throws IOException { argument 136 super(host, port);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | InetSocketAddressTest.java | 50 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/ojluni/src/main/java/java/security/cert/ |
H A D | LDAPCertStoreParameters.java | 32 * name and port number) to implementations of the LDAP <code>CertStore</code> 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/ojluni/src/main/java/java/util/logging/ |
H A D | SocketHandler.java | 59 * <li> java.util.logging.SocketHandler.port 60 * specifies the target TCP port to use (no default). 72 private int port; field in class:SocketHandler 95 port = manager.getIntProperty(cname + ".port", 0); 103 * @throws IllegalArgumentException if the host or port are invalid or 106 * host and port. 116 System.err.println("SocketHandler: connect failed to " + host + ":" + port); 123 * Construct a <tt>SocketHandler</tt> using a specified host and port. 127 * and port argument 137 SocketHandler(String host, int port) argument [all...] |
/libcore/ojluni/src/main/java/sun/net/www/protocol/http/ |
H A D | Handler.java | 50 public Handler (String proxy, int port) { argument 52 this.proxyPort = port;
|
H A D | HttpCallerInfo.java | 49 final public int port; field in class:HttpCallerInfo 61 this.port = old.port; 77 port = url.getDefaultPort(); 79 port = p; 98 public HttpCallerInfo(URL url, String host, int port) { argument 101 this.port = port;
|
/libcore/support/src/test/java/tests/net/ |
H A D | DelegatingSocketFactory.java | 53 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 D | DelegatingSSLSocketFactory.java | 65 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/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; 83 Socket s = sf.createSocket(webSite.host, webSite.port);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/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 | 159 // Check invalid server port. 168 // Check invalid client port. 180 // Checks the ordering of port number validation (IllegalArgumentException) and binding error. 195 // Create a socket with an invalid port and localhost as the client address. Both 197 // already bound to the socket above and port is invalid, however, to preserve the 209 * javax.net.SocketFactory#createSocket(String host, int port, 286 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { argument 291 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument 297 public Socket createSocket(InetAddress host, int port) throws IOException { argument 302 public Socket createSocket(InetAddress address, int port, argument [all...] |
/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/ojluni/src/main/java/javax/net/ssl/ |
H A D | SSLContextSpi.java | 111 * @param port the non-authoritative port 121 protected abstract SSLEngine engineCreateSSLEngine(String host, int port); argument
|
H A D | SSLServerSocketFactory.java | 200 public ServerSocket createServerSocket(int port) argument 206 public ServerSocket createServerSocket(int port, int backlog) argument 213 createServerSocket(int port, int backlog, InetAddress ifAddress) argument
|
H A D | SSLSocketFactory.java | 194 * host, at the given port. This constructor can be used when tunneling SSL 196 * socket. The host and port refer to the logical peer destination. 202 * @param port the server port 204 * @return a socket connected to the specified host and port 209 int port, boolean autoClose) 234 public Socket createSocket(String host, int port) argument 241 int port, boolean autoClose) 247 public Socket createSocket(InetAddress address, int port) argument 253 public Socket createSocket(String host, int port, argument 208 createSocket(Socket s, String host, int port, boolean autoClose) argument 240 createSocket(Socket s, String host, int port, boolean autoClose) argument 260 createSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort) argument [all...] |
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | IoTrace.java | 85 * @param port 86 * the remote port the socket is bound to 94 public static void socketReadEnd(Object context, InetAddress address, int port, argument 115 * @param port 116 * the remote port the socket is bound to 121 public static void socketWriteEnd(Object context, InetAddress address, int port, argument
|
/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/luni/src/main/native/ |
H A D | NetworkUtilities.cpp | 31 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 137 sin6.sin6_port = htons(port); 166 sin.sin_port = htons(port); 174 bool inetAddressToSockaddrVerbatim(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len) { argument 175 return inetAddressToSockaddr(env, inetAddress, port, ss, sa_len, false); 178 bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storag argument [all...] |
/libcore/ojluni/src/main/java/java/net/ |
H A D | CookieManager.java | 221 // Let's check the authorize port list if it exists 224 int port = uri.getPort(); 225 if (port == -1) { 226 port = "https".equals(uri.getScheme()) ? 443 : 80; 228 if (isInPortList(ports, port)) { 317 int port = uri.getPort(); 318 if (port == -1) { 319 port = "https".equals(uri.getScheme()) ? 443 : 80; 322 // Empty port list means this should be restricted 323 // to the incoming URI port 364 isInPortList(String lst, int port) argument [all...] |
H A D | DatagramPacket.java | 62 int port; field in class:DatagramPacket 80 this.port = -1; 100 * specified port number on the specified host. The 108 * @param port the destination port number. 114 InetAddress address, int port) { 117 setPort(port); 123 * specified port number on the specified host. The 144 * <code>length</code> to the specified port number on the specified 151 * @param port th 113 DatagramPacket(byte buf[], int offset, int length, InetAddress address, int port) argument 154 DatagramPacket(byte buf[], int length, InetAddress address, int port) argument [all...] |
H A D | MulticastSocket.java | 39 * and by a standard UDP port number. Class D IP addresses 44 * with the desired port, then invoking the 67 * recipients to that host and port receive the message (within the 71 * When a socket subscribes to a multicast group/port, it receives 72 * datagrams sent by other hosts to the group/port, as do all other 73 * members of the group and port. A socket relinquishes membership 76 * and port concurrently, and they will all receive group datagrams. 116 * Create a multicast socket and bind it to a specific port. 120 * with the <code>port</code> argument 128 * @param port por 136 MulticastSocket(int port) argument [all...] |
H A D | PlainSocketImpl.java | 55 native void socketConnect(InetAddress address, int port, int timeout) argument 58 native void socketBind(InetAddress address, int port) argument
|