Lines Matching defs:address

93      * is called with the proxy host address and port number
124 InetSocketAddress epoint = (InetSocketAddress) p.address();
175 * specifying the address as <tt>{@link java.net.InetAddress#getByName InetAddress.getByName}(null)</tt>.
176 * In other words, it is equivalent to specifying an address of the
185 * with the host address and <code>port</code>
188 * @param host the host name, or <code>null</code> for the loopback address.
191 * @exception UnknownHostException if the IP address of
215 * number at the specified IP address.
223 * with the host address and <code>port</code>
226 * @param address the IP address.
234 * @exception NullPointerException if <code>address</code> is null.
240 public Socket(InetAddress address, int port) throws IOException {
241 this(address != null ? new InetSocketAddress(address, port) : null,
248 * address and port supplied.
251 * specifying the address as <tt>{@link java.net.InetAddress#getByName InetAddress.getByName}(null)</tt>.
252 * In other words, it is equivalent to specifying an address of the
260 * with the host address and <code>port</code>
263 * @param host the name of the remote host, or <code>null</code> for the loopback address.
265 * @param localAddr the local address the socket is bound to, or
266 * <code>null</code> for the <code>anyLocal</code> address.
286 * Creates a socket and connects it to the specified remote address on
288 * address and port supplied.
290 * If the specified local address is <tt>null</tt> it is the equivalent of
291 * specifying the address as the AnyLocal address (see <tt>{@link java.net.InetAddress#isAnyLocalAddress InetAddress.isAnyLocalAddress}()</tt>).
298 * with the host address and <code>port</code>
301 * @param address the remote address
303 * @param localAddr the local address the socket is bound to, or
304 * <code>null</code> for the <code>anyLocal</code> address.
313 * @exception NullPointerException if <code>address</code> is null.
317 public Socket(InetAddress address, int port, InetAddress localAddr,
319 this(address != null ? new InetSocketAddress(address, port) : null,
328 * specifying the address as <tt>{@link java.net.InetAddress#getByName InetAddress.getByName}(null)</tt>.
329 * In other words, it is equivalent to specifying an address of the
342 * with the host address and <code>port</code>
347 * @param host the host name, or <code>null</code> for the loopback address.
372 * the specified IP address.
389 * @param host the IP address.
412 private Socket(SocketAddress address, SocketAddress localAddr,
417 if (address == null)
424 if (address != null)
425 connect(address);
550 throw new IllegalArgumentException("connect: The address can't be null");
562 throw new IllegalArgumentException("Unsupported address type");
590 * the kernel will have picked an ephemeral port & a local address
596 * Binds the socket to a local address.
598 * If the address is <code>null</code>, then the system will pick up
599 * an ephemeral port and a valid local address to bind the socket.
617 throw new IllegalArgumentException("Unsupported address type");
620 throw new SocketException("Unresolved address");
636 throw new IllegalArgumentException(op + ": invalid address type");
662 * Returns the address to which the socket is connected.
665 * then this method will continue to return the connected address
668 * @return the remote IP address to which this socket is connected,
682 * Gets the local address to which the socket is bound.
684 * @return the local address to which the socket is bound, or
685 * the {@link InetAddress#isAnyLocalAddress wildcard} address
756 * Returns the address of the endpoint this socket is connected to, or
760 * then this method will continue to return the connected address
779 * Returns the address of the endpoint this socket is bound to, or
786 * <code>InetSocketAddress</code>'s address is the
787 * {@link InetAddress#isAnyLocalAddress wildcard} address
1203 * is bound to a local address.<p></li>
1362 * For applications using a well known socket address or port
1365 * timeout state involving the socket address or port.
1541 * @return true if the socket was successfuly bound to an address