Lines Matching refs:port

91      * Creates a server socket, bound to the specified port. A port number
92 * of <code>0</code> means that the port number is automatically
93 * allocated, typically from an ephemeral port range. This port
106 * with the <code>port</code> argument
111 * @param port the port number, or <code>0</code> to use a port
118 * @exception IllegalArgumentException if the port parameter is outside
119 * the specified range of valid port values, which is between
127 public ServerSocket(int port) throws IOException {
128 this(port, 50, null);
132 * Creates a server socket and binds it to the specified local port
134 * A port number of <code>0</code> means that the port number is
135 * automatically allocated, typically from an ephemeral port range.
136 * This port number can then be retrieved by calling
150 * with the <code>port</code> argument
162 * @param port the port number, or <code>0</code> to use a port
171 * @exception IllegalArgumentException if the port parameter is outside
172 * the specified range of valid port values, which is between
180 public ServerSocket(int port, int backlog) throws IOException {
181 this(port, backlog, null);
185 * Create a server with the specified port, listen backlog, and
191 * The port must be between 0 and 65535, inclusive.
192 * A port number of <code>0</code> means that the port number is
193 * automatically allocated, typically from an ephemeral port range.
194 * This port number can then be retrieved by calling
199 * with the <code>port</code> argument
210 * @param port the port number, or <code>0</code> to use a port
220 * @exception IllegalArgumentException if the port parameter is outside
221 * the specified range of valid port values, which is between
229 public ServerSocket(int port, int backlog, InetAddress bindAddr) throws IOException {
231 if (port < 0 || port > 0xFFFF)
233 "Port value out of range: " + port);
237 bind(new InetSocketAddress(bindAddr, port), backlog);
315 * (IP address and port number).
318 * an ephemeral port and a valid local address to bind the socket.
320 * @param endpoint The IP address & port number to bind to.
336 * (IP address and port number).
339 * an ephemeral port and a valid local address to bind the socket.
347 * @param endpoint The IP address & port number to bind to.
420 * Returns the port number on which this socket is listening.
423 * then this method will continue to return the port number
426 * @return the port number to which this socket is listening or
667 * For applications using a well known socket address or port
670 * timeout state involving the socket address or port.
718 * Returns the implementation address and implementation port of