Lines Matching refs:port

93      * is called with the proxy host address and port number
171 * Creates a stream socket and connects it to the specified port
185 * with the host address and <code>port</code>
189 * @param port the port number.
197 * @exception IllegalArgumentException if the port parameter is outside
198 * the specified range of valid port values, which is between
205 public Socket(String host, int port)
208 this(host != null ? new InetSocketAddress(host, port) :
209 new InetSocketAddress(InetAddress.getByName(null), port),
214 * Creates a stream socket and connects it to the specified port
223 * with the host address and <code>port</code>
227 * @param port the port number.
231 * @exception IllegalArgumentException if the port parameter is outside
232 * the specified range of valid port values, which is between
240 public Socket(InetAddress address, int port) throws IOException {
241 this(address != null ? new InetSocketAddress(address, port) : null,
247 * the specified remote port. The Socket will also bind() to the local
248 * address and port supplied.
255 * A local port number of <code>zero</code> will let the system pick up a
256 * free port in the <code>bind</code> operation.</p>
260 * with the host address and <code>port</code>
264 * @param port the remote port
267 * @param localPort the local port the socket is bound to, or
268 * <code>zero</code> for a system selected free port.
272 * @exception IllegalArgumentException if the port parameter or localPort
273 * parameter is outside the specified range of valid port values,
278 public Socket(String host, int port, InetAddress localAddr,
280 this(host != null ? new InetSocketAddress(host, port) :
281 new InetSocketAddress(InetAddress.getByName(null), port),
287 * the specified remote port. The Socket will also bind() to the local
288 * address and port supplied.
293 * A local port number of <code>zero</code> will let the system pick up a
294 * free port in the <code>bind</code> operation.</p>
298 * with the host address and <code>port</code>
302 * @param port the remote port
305 * @param localPort the local port the socket is bound to or
306 * <code>zero</code> for a system selected free port.
310 * @exception IllegalArgumentException if the port parameter or localPort
311 * parameter is outside the specified range of valid port values,
317 public Socket(InetAddress address, int port, InetAddress localAddr,
319 this(address != null ? new InetSocketAddress(address, port) : null,
324 * Creates a stream socket and connects it to the specified port
342 * with the host address and <code>port</code>
348 * @param port the port number.
354 * @exception IllegalArgumentException if the port parameter is outside
355 * the specified range of valid port values, which is between
364 public Socket(String host, int port, boolean stream) throws IOException {
365 this(host != null ? new InetSocketAddress(host, port) :
366 new InetSocketAddress(InetAddress.getByName(null), port),
371 * Creates a socket and connects it to the specified port number at
384 * with <code>host.getHostAddress()</code> and <code>port</code>
390 * @param port the port number.
396 * @exception IllegalArgumentException if the port parameter is outside
397 * the specified range of valid port values, which is between
407 public Socket(InetAddress host, int port, boolean stream) throws IOException {
408 this(host != null ? new InetSocketAddress(host, port) : null,
566 int port = epoint.getPort();
572 security.checkConnect(epoint.getHostName(), port);
574 security.checkConnect(addr.getHostAddress(), port);
582 impl.connect(addr.getHostName(), port);
584 impl.connect(addr, port);
590 * the kernel will have picked an ephemeral port & a local address
599 * an ephemeral port and a valid local address to bind the socket.
625 int port = epoint.getPort();
627 getImpl().bind (addr, port);
714 * Returns the remote port number to which this socket is connected.
717 * then this method will continue to return the connected port number
720 * @return the remote port number to which this socket is connected, or
735 * Returns the local port number to which this socket is bound.
738 * then this method will continue to return the local port number
741 * @return the local port number to which this socket is bound or -1
788 * and its port is the local port that it was bound to.
1362 * For applications using a well known socket address or port
1365 * timeout state involving the socket address or port.
1510 ",port=" + getImpl().getPort() +