/dalvik/libcore/luni/src/main/java/java/net/ |
H A D | InetSocketAddress.java | 24 * This class represents a socket endpoint described by a IP address and a port 35 private int port; field in class:InetSocketAddress 38 * Creates a socket endpoint with the given port number {@code port} and 39 * no specified address. The range for valid port numbers is between 0 and 42 * @param port 43 * the specified port number to which this socket is bound. 45 public InetSocketAddress(int port) { argument 46 this((InetAddress) null, port); 50 * Creates a socket endpoint with the given port numbe 60 InetSocketAddress(InetAddress address, int port) argument 88 InetSocketAddress(String host, int port) argument 96 InetSocketAddress(String host, int port, boolean needResolved) argument 134 createUnresolved(String host, int port) argument [all...] |
H A D | SocketImpl.java | 34 * ServerSocket} on a well known port (referred to as listener) used to 46 * The remote port this socket is connected to. 48 protected int port; field in class:SocketImpl 56 * The local port this socket is connected to. 101 * Binds this socket to the specified local host address and port number. 105 * @param port 106 * the port on the local machine to bind this socket to. 110 protected abstract void bind(InetAddress address, int port) argument 122 * Connects this socket to the specified remote host and port number. 126 * @param port 131 connect(String host, int port) argument 144 connect(InetAddress address, int port) argument [all...] |
H A D | ProxySelectorImpl.java | 117 * port from "http.proxyPort", or from "proxyPort" if "http.proxyPort" is 118 * unavailable. 2. gets from "proxyHost" if 1 is unavailable,then get port 125 String port = null; 138 port = getSystemPropertyOrAlternative("http.proxyPort", //$NON-NLS-1$ 143 port = getSystemPropertyOrAlternative("proxyPort", //$NON-NLS-1$ 149 port = getSystemProperty( 154 return createProxy(type, host, port, defaultPort); 162 String port = null; 169 port = getSystemProperty( 176 port 269 createProxy(Proxy.Type type, String host, String port, int defaultPort) argument [all...] |
H A D | DatagramPacket.java | 47 int port = -1; // The default port number is -1 field in class:DatagramPacket 82 * Constructs a new {@code DatagramPacket} object to send data to the port 96 * the port of the target host. 106 * Constructs a new {@code DatagramPacket} object to send data to the port 117 * @param port 118 * the port of the target host. 120 public DatagramPacket(byte[] data, int length, InetAddress host, int port) { argument 121 this(data, 0, length, host, port); 162 * Gets the port numbe [all...] |
/dalvik/libcore/x-net/src/main/java/javax/net/ |
H A D | DefaultServerSocketFactory.java | 34 public ServerSocket createServerSocket(int port) throws IOException { argument 35 return new ServerSocket(port); 39 public ServerSocket createServerSocket(int port, int backlog) throws IOException { argument 40 return new ServerSocket(port, backlog); 44 public ServerSocket createServerSocket(int port, int backlog, InetAddress iAddress) argument 46 return new ServerSocket(port, backlog, iAddress);
|
H A D | DefaultSocketFactory.java | 40 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { argument 41 return new Socket(host, port); 45 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument 47 return new Socket(host, port, localHost, localPort); 51 public Socket createSocket(InetAddress host, int port) throws IOException { argument 52 return new Socket(host, port); 56 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, argument 58 return new Socket(address, port, localAddress, localPort);
|
H A D | ServerSocketFactory.java | 67 * Creates a new server socket which is bound to the given port. 69 * @param port 70 * the port on which the created socket has to listen. 75 public abstract ServerSocket createServerSocket(int port) throws IOException; argument 78 * Creates a new server socket which is bound to the given port and 81 * @param port 82 * the port on which the created socket has to listen. 89 public abstract ServerSocket createServerSocket(int port, int backlog) throws IOException; argument 93 * specified port and configures its maximum of queued connections. 95 * @param port 106 createServerSocket(int port, int backlog, InetAddress iAddress) argument [all...] |
H A D | SocketFactory.java | 70 * the parameters {@code host} and {@code port}. The socket is bound to any 71 * available local address and port. 75 * @param port 76 * the port number of the remote host at which the socket is 85 public abstract Socket createSocket(String host, int port) throws IOException, argument 90 * the parameters {@code host} and {@code port}. The socket is bound to the 92 * port {@code localPort}. 96 * @param port 97 * the port number of the remote host at which the socket is 102 * the port numbe 111 createSocket(String host, int port, InetAddress localHost, int localPort) argument 128 createSocket(InetAddress host, int port) argument 151 createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument [all...] |
/dalvik/libcore/security/src/test/java/tests/security/permissions/ |
H A D | JavaNetMulticastSocketTest.java | 79 int port = 0; 82 port = 0; 85 public void checkListen(int port) { 87 this.port = port; 88 super.checkListen(port); 99 int port = Support_PortManager.getNextPortForUDP(); 102 new MulticastSocket(port); 104 assertEquals("Argument of checkListen is not correct", port, s.port); [all...] |
H A D | JavaNetDatagramSocketTest.java | 80 int port = 0; 83 port = 0; 86 public void checkListen(int port) { 88 this.port = port; 99 int port = Support_PortManager.getNextPortForUDP(); 101 DatagramSocket s1 = new DatagramSocket(port); 103 assertEquals("Argument of checkListen is not correct", port, s.port); 108 assertEquals("Argument of checkListen is not correct", 0, s.port); [all...] |
H A D | JavaNetSocketTest.java | 96 int port = -1; 100 port = -1; 103 public void checkConnect(String host, int port) { 105 this.port = port; 115 int port = 80; 122 new Socket(host, port); 125 assertEquals("Argument of checkConnect is not correct", port, s.port); 128 new Socket(host, port, tru [all...] |
H A D | JavaNetServerSocketTest.java | 82 int port = 0; 85 port = 0; 88 public void checkListen(int port) { 90 this.port = port; 104 assertEquals("Argument of checkListen is not correct", 8888, s.port); 110 assertEquals("Argument of checkListen is not correct", 8888, s.port); 117 assertEquals("Argument of checkListen is not correct", 0, s.port); 123 assertEquals("Argument of checkListen is not correct", 8888, s.port);
|
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ |
H A D | MockSecurityManager.java | 24 MockSecurityManager(int port) { argument 26 this.validPort = port; 37 public void checkConnect(String host, int port) { argument 48 super.checkConnect(host, port); 51 public void checkAccept(String host, int port) { argument 60 if (this.validPort != port) { 67 super.checkAccept(host, port);
|
/dalvik/libcore/security/src/main/java/java/security/cert/ |
H A D | LDAPCertStoreParameters.java | 26 // 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 46 this.port = port; 57 * The default parameters are server name "localhost" and port 38 [all...] |
/dalvik/libcore/x-net/src/main/java/javax/net/ssl/ |
H A D | SSLServerSocket.java | 45 * Creates a TCP server socket on the specified port with the default 48 * @param port 49 * the port to listen on. 53 protected SSLServerSocket(int port) throws IOException { argument 54 super(port); 60 * Creates a TCP server socket on the specified port using the specified 63 * @param port 64 * the port to listen on. 70 protected SSLServerSocket(int port, int backlog) throws IOException { argument 71 super(port, backlo 90 SSLServerSocket(int port, int backlog, InetAddress address) argument [all...] |
H A D | SSLSocket.java | 44 * port. 48 * @param port 49 * the port number to connect to. 55 protected SSLSocket(String host, int port) throws IOException, UnknownHostException { argument 56 super(host, port); 63 * port. 67 * @param port 68 * the port number to connect to. 72 protected SSLSocket(InetAddress address, int port) throws IOException { argument 73 super(address, port); 95 SSLSocket(String host, int port, InetAddress clientAddress, int clientPort) argument 117 SSLSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort) argument [all...] |
H A D | DefaultSSLSocketFactory.java | 49 public Socket createSocket(Socket s, String host, int port, boolean autoClose) argument 55 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { argument 60 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument 66 public Socket createSocket(InetAddress host, int port) throws IOException { argument 71 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, argument
|
H A D | DefaultSSLServerSocketFactory.java | 49 public ServerSocket createServerSocket(int port) throws IOException { argument 54 public ServerSocket createServerSocket(int port, int backlog) throws IOException { argument 59 public ServerSocket createServerSocket(int port, int backlog, InetAddress iAddress) argument
|
H A D | SSLContextSpi.java | 68 * specified hostname and port. 72 * @param port 73 * the port 78 protected abstract SSLEngine engineCreateSSLEngine(String host, int port); argument
|
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
H A D | OpenSSLSocketFactoryImpl.java | 64 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { argument 65 return new OpenSSLSocketImpl(host, port, (SSLParameters) sslParameters.clone()); 68 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) argument 70 return new OpenSSLSocketImpl(host, port, localHost, localPort, (SSLParameters) sslParameters.clone()); 73 public Socket createSocket(InetAddress host, int port) throws IOException { argument 74 return new OpenSSLSocketImpl(host, port, (SSLParameters) sslParameters.clone()); 77 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) argument 79 return new OpenSSLSocketImpl(address, port, localAddress, localPort, (SSLParameters) sslParameters.clone()); 82 public Socket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException { argument 83 return new OpenSSLSocketImplWrapper(s, host, port, autoClos [all...] |
H A D | SSLClientSessionCache.java | 35 * 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 D | OpenSSLServerSocketFactoryImpl.java | 58 public ServerSocket createServerSocket(int port) throws IOException { argument 59 return new OpenSSLServerSocketImpl(port, (SSLParameters) sslParameters.clone()); 62 public ServerSocket createServerSocket(int port, int backlog) argument 64 return new OpenSSLServerSocketImpl(port, backlog, (SSLParameters) sslParameters.clone()); 67 public ServerSocket createServerSocket(int port, int backlog, argument 69 return new OpenSSLServerSocketImpl(port, backlog, iAddress, (SSLParameters) sslParameters.clone());
|
H A D | ClientSessionContext.java | 29 * Caches client sessions. Indexes by host and port. Users are typically 30 * looking to reuse any session for a given host and port. Users of the 43 /** Sessions indexed by host and port in access order. */ 154 * Finds a cached session for the given host name and port. 157 * @param port of server 160 public SSLSession getSession(String host, int port) { argument 162 SSLSession session = sessions.get(new HostAndPort(host, port)); 170 byte[] data = persistentCache.getSessionData(host, port); 172 SSLSession session = toSession(data, host, port); 175 sessions.put(new HostAndPort(host, port), sessio 205 final int port; field in class:ClientSessionContext.HostAndPort 207 HostAndPort(String host, int port) argument [all...] |
/dalvik/libcore/logging/src/main/java/java/util/logging/ |
H A D | SocketHandler.java | 47 * <li>java.util.logging.SocketHandler.encoding specifies the port number that 69 * the log manager, including the host name and port number. Default 73 * if failed to connect to the specified host and port. 75 * if the host name or port number is illegal. 85 "java.util.logging.SocketHandler.port")); //$NON-NLS-1$ 90 * and port number together with other properties read by the log manager. 95 * @param port 96 * the port number 98 * if failed to connect to the specified host and port. 100 * if the host name or port numbe 105 SocketHandler(String host, int port) argument 111 initSocket(String host, String port) argument [all...] |
/dalvik/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);
|