/libcore/luni/src/main/java/java/lang/ |
H A D | SecurityManager.java | 40 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/luni/src/main/java/java/net/ |
H A D | Authenticator.java | 38 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...] |
H A D | DatagramPacket.java | 46 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 D | DatagramSocket.java | 41 int port = -1; field in class:DatagramSocket 56 * Constructs a UDP datagram socket which is bound to any available port on 67 * Constructs a UDP datagram socket which is bound to the specific port 72 * the port to bind on the localhost. 83 * address {@code addr} on port {@code aPort}. Valid values for {@code 87 * the port to bind on the localhost. 124 port = -1; 170 * Gets the local port which this socket is bound to. 172 * @return the local port of this socket or {@code -1} if this socket is 186 * Gets the remote port whic 505 connect(InetAddress address, int port) argument [all...] |
H A D | DatagramSocketImpl.java | 35 * The number of the local port to which this socket is bound. 47 * Binds the datagram socket to the given localhost/port. Sockets must be 50 * @param port 51 * the port on the localhost to bind. 55 * if an error occurs while binding, for example, if the port 58 protected abstract void bind(int port, InetAddress addr) throws SocketException; argument 92 * Returns the local port to which this socket is bound. 206 * data and the address and port information of the target host as well. 243 * Connects this socket to the specified remote address and port. 247 * @param port 253 connect(InetAddress inetAddr, int port) argument [all...] |
H A D | HttpURLConnection.java | 561 * with the host and the port number as the target name and {@code 562 * "resolve, connect"} as the action list. If the port number of this URL 563 * instance is lower than {@code 0} the port will be set to {@code 80}. 572 int port = url.getPort(); 573 if (port < 0) { 574 port = 80; 576 return new SocketPermission(url.getHost() + ":" + port,
|
H A D | InetSocketAddress.java | 24 * This class represents 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 52 * the specified port number to which this socket is bound. 54 public InetSocketAddress(int port) { argument 55 this((InetAddress) null, port); 69 InetSocketAddress(InetAddress address, int port) argument 89 InetSocketAddress(String host, int port) argument 97 InetSocketAddress(String hostname, int port, boolean needResolved) argument 129 createUnresolved(String host, int port) argument [all...] |
H A D | MulticastSocket.java | 38 * Constructs a multicast socket, bound to any available port on the 48 * Constructs a multicast socket, bound to the specified {@code port} on the 53 public MulticastSocket(int port) throws IOException { argument 54 super(port); 59 * Constructs a {@code MulticastSocket} bound to the address and port specified by
|
H A D | PlainDatagramSocketImpl.java | 67 @Override public void bind(int port, InetAddress address) throws SocketException { argument 68 IoBridge.bind(fd, address, port); 69 if (port != 0) { 70 localPort = port; 180 int port = isNativeConnected ? 0 : packet.getPort(); 182 IoBridge.sendto(fd, packet.getData(), packet.getOffset(), packet.getLength(), 0, address, port); 200 public void connect(InetAddress inetAddr, int port) throws SocketException { argument 201 IoBridge.connect(fd, inetAddr, port); // Throws on failure. 209 connectedPort = port; 228 * Set the received address and port i [all...] |
H A D | PlainSocketImpl.java | 78 public PlainSocketImpl(FileDescriptor fd, int localport, InetAddress addr, int port) { argument 82 this.port = port; 105 newImpl.port = peerAddress.getPort(); 129 this.port = remotePort; 149 @Override protected void bind(InetAddress address, int port) throws IOException { argument 150 IoBridge.bind(fd, address, port); 152 if (port != 0) { 153 this.localport = port; 176 * Connects this socket to the specified remote host address/port 426 socksSendRequest(int command, InetAddress address, int port) argument [all...] |
H A D | ProxySelectorImpl.java | 44 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 D | ServerSocket.java | 63 * Constructs a new {@code ServerSocket} instance bound to the given {@code port}. 64 * The backlog is set to 50. If {@code port == 0}, a port will be assigned by the OS. 68 public ServerSocket(int port) throws IOException { argument 69 this(port, DEFAULT_BACKLOG, Inet4Address.ANY); 73 * Constructs a new {@code ServerSocket} instance bound to the given {@code port}. 75 * If {@code port == 0}, a port will be assigned by the OS. 79 public ServerSocket(int port, int backlog) throws IOException { argument 80 this(port, backlo 91 ServerSocket(int port, int backlog, InetAddress localAddress) argument [all...] |
H A D | Socket.java | 93 * the port on the target host to connect to. 97 * the port on the local host to bind to. 133 * to any available port on the local host. 142 * the port on the target host to connect to. 155 * the socket is bound to the given address {@code localAddress} on port 165 * the port on the target host to connect to. 169 * the port on the local host to bind to. 182 * specified by the parameters {@code hostName} and {@code port}. The socket 183 * is bound to any available port on the local host. 191 * @param port 205 Socket(String hostName, int port, boolean streaming) argument 271 Socket(InetAddress addr, int port, boolean streaming) argument [all...] |
H A D | SocketImpl.java | 30 * 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 D | Socks4Message.java | 77 * Returns the request's port number. 84 * Set the request's port number. 86 public void setPort(int port) { argument 87 Memory.pokeShort(buffer, INDEX_PORT, (short) port, ByteOrder.BIG_ENDIAN);
|
H A D | URI.java | 88 * has an authority, user info, host, port, path or query. An opaque URIs may 120 * A URI's host, port and scheme are not eligible for encoding and must not 186 private transient int port = -1; field in class:URI 235 public URI(String scheme, String userInfo, String host, int port, String path, String query, argument 253 if (userInfo != null || host != null || port != -1) { 270 if (port != -1) { 272 uri.append(port); 346 * info, host and port: 347 * [user-info@][host][:port] 427 * Breaks this URI's authority into user info, host and port part [all...] |
H A D | URL.java | 89 private int port = -1; field in class:URL 198 * protocol's default port. 209 * protocol's default port. 212 * @param port the port, or {@code -1} for the protocol's default port. 217 public URL(String protocol, String host, int port, String file) throws MalformedURLException { argument 218 this(protocol, host, port, file, null); 223 * protocol's default port. 226 * @param port th 233 URL(String protocol, String host, int port, String file, URLStreamHandler handler) argument 307 set(String protocol, String host, int port, String file, String ref) argument 655 set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument [all...] |
H A D | URLStreamHandler.java | 97 int port = -1; 117 * Extract the host and port. The host may be an IPv6 address with 118 * colons like "[::1]", in which case we look for the port delimiter 134 port = Integer.parseInt(spec.substring(portStart, fileStart)); 135 if (port < 0) { 136 throw new IllegalArgumentException("port < 0: " + port); 151 port = url.getPort(); 192 setURL(url, url.getProtocol(), host, port, authority, userInfo, path, query, ref); 219 * @param port 229 setURL(URL u, String protocol, String host, int port, String file, String ref) argument 241 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument [all...] |
/libcore/luni/src/main/java/java/nio/ |
H A D | SocketChannelImpl.java | 123 int port = 0; 126 port = connectAddress.getPort(); 128 socket = new SocketAdapter(new PlainSocketImpl(fd, localPort, addr, port), this); 165 int port = inetSocketAddress.getPort(); 177 finished = IoBridge.connect(fd, normalAddr, port); 245 int port = connectAddress.getPort(); 246 finished = IoBridge.isConnected(fd, inetAddress, port, 0, 0); // Return immediately.
|
/libcore/luni/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 49 this.port = port; 57 * The default parameters are server name "localhost" and port 38 [all...] |
/libcore/luni/src/main/java/java/util/logging/ |
H A D | SocketHandler.java | 45 * <li>java.util.logging.SocketHandler.encoding specifies the port number that 67 * the log manager, including the host name and port number. Default 71 * if failed to connect to the specified host and port. 73 * if the host name or port number is illegal. 80 "java.util.logging.SocketHandler.port")); 85 * and port number together with other properties read by the log manager. 90 * @param port 91 * the port number 93 * if failed to connect to the specified host and port. 95 * if the host name or port numbe 97 SocketHandler(String host, int port) argument 103 initSocket(String host, String port) argument [all...] |
/libcore/luni/src/main/java/javax/net/ |
H A D | DefaultServerSocketFactory.java | 32 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 D | DefaultSocketFactory.java | 39 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 D | ServerSocketFactory.java | 66 * 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 D | SocketFactory.java | 69 * 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...] |