/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/security/ssl/ |
H A D | SSLSocketFactoryImpl.java | 77 * Constructs an SSL connection to a named host at a specified port. 83 * @param port number of the server's port 85 public Socket createSocket(String host, int port) argument 88 return new SSLSocketImpl(context, host, port); 93 * ServerSocket on the named host, at the given port. This 95 * host and port refer to the logical destination server. This 101 * @param port the server port 107 public Socket createSocket(Socket s, String host, int port, argument 122 createSocket(InetAddress address, int port) argument 136 createSocket(String host, int port, InetAddress clientAddress, int clientPort) argument 151 createSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort) argument [all...] |
H A D | SSLServerSocketFactoryImpl.java | 74 public ServerSocket createServerSocket (int port) argument 77 return new SSLServerSocketImpl (port, DEFAULT_BACKLOG, context); 81 public ServerSocket createServerSocket (int port, int backlog) argument 84 return new SSLServerSocketImpl (port, backlog, context); 88 createServerSocket (int port, int backlog, InetAddress ifAddress) argument 91 return new SSLServerSocketImpl (port, backlog, ifAddress, context);
|
/libcore/luni/src/main/native/ |
H A D | NetworkUtilities.h | 21 // 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,
|
/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/sun/net/www/protocol/http/ |
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;
|
H A D | AuthenticationInfo.java | 95 return port; 160 //return ("{"+type+":"+authScheme+":"+protocol+":"+host+":"+port+":"+realm+":"+path+"}"); 182 /** The port on the host we're authenticating against. */ 183 int port; field in class:AuthenticationInfo 192 public AuthenticationInfo(char type, AuthScheme authScheme, String host, int port, String realm) { argument 197 this.port = port; 220 this.port = url.getPort(); 221 if (this.port == -1) { 222 this.port 310 getProxyAuth(String host, int port) argument 321 getProxyAuthKey(String host, int port, String realm, AuthScheme scheme) argument [all...] |
/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/ojluni/src/main/java/sun/net/util/ |
H A D | URLUtil.java | 61 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 D | InetSocketAddress.java | 37 * 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 227 InetSocketAddress(String hostname, int port) argument 240 InetSocketAddress(int port, String hostname) argument 265 createUnresolved(String host, int port) argument [all...] |
H A D | SocketImpl.java | 63 * The port number on the remote host to which this socket is connected. 65 protected int port; field in class:SocketImpl 68 * The local port number to which this socket is connected. 83 * Connects this socket to the specified port on the named host. 86 * @param port the port number. 90 protected abstract void connect(String host, int port) throws IOException; argument 93 * Connects this socket to the specified port number on the specified host. 96 * @param port the port numbe 100 connect(InetAddress address, int port) argument 122 bind(InetAddress host, 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 | AbstractPlainSocketImpl.java | 108 * Creates a socket and connects it to the specified port on 111 * @param port the specified port 113 protected void connect(String host, int port) argument 119 this.port = port; 122 connectToAddress(address, port, timeout); 138 * the specified port. 140 * @param port the specified port 142 connect(InetAddress address, int port) argument 192 connectToAddress(InetAddress address, int port, int timeout) argument 326 doConnect(InetAddress address, int port, int timeout) argument 433 setPort(int port) argument 627 socketConnect(InetAddress address, int port, int timeout) argument 629 socketBind(InetAddress address, 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
|
/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/javax/net/ssl/ |
H A D | SSLSocket.java | 885 * Constructs a TCP connection to a named host at a specified port. 889 * method is called with the host address and <code>port</code> 894 * @param port number of the server's port 899 * @throws IllegalArgumentException if the port parameter is outside the 900 * specified range of valid port values, which is between 0 and 904 protected SSLSocket(String host, int port) argument 906 { super(host, port); } 912 * and port. This acts as the SSL client. 915 * method is called with the host address and <code>port</cod 929 SSLSocket(InetAddress address, int port) argument 960 SSLSocket(String host, int port, InetAddress clientAddress, int clientPort) argument 991 SSLSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort) argument [all...] |
H A D | SSLServerSocket.java | 77 * 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 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
|
/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/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/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
H A D | SSLEngineTest.java | 57 * 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 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);
|