Lines Matching defs:address

50  * This class represents an Internet Protocol (IP) address.
52 * <p> An IP address is either a 32-bit or 128-bit unsigned number
54 * TCP are built. The IP address architecture is defined by <a
63 * InetAddress consists of an IP address and possibly its
70 * <blockquote><table cellspacing=2 summary="Description of unicast and multicast address types">
73 * a unicast address is delivered to the interface identified by
74 * that address.
77 * address. It must never be assigned to any node. It indicates the
78 * absence of an address. One example of its use is as the target of
82 * <p> The <i>unspecified</i> address must not be used as
83 * the destination address of an IP packet.
85 * <p> The <i>Loopback</i> Addresses -- This is the address
87 * IP address loops around and becomes IP input on the local
88 * host. This address is often used when testing a
92 * to different nodes). A packet sent to a multicast address is
93 * delivered to all interfaces identified by that address.</td></tr>
96 * <h4> IP address scope </h4>
99 * on a single link for purposes such as auto-address configuration,
109 * The textual representation of an IP address is address family specific.
113 * For IPv4 address format, please refer to <A
115 * address format, please refer to <A
123 * Host name-to-IP address <i>resolution</i> is accomplished through
128 * one. For any host name, its corresponding IP address is returned.
130 * <p> <i>Reverse name resolution</i> means that for any IP address,
131 * the host associated with the IP address is returned.
192 * Specify the address family: Internet Protocol, Version 4
198 * Specify the address family: Internet Protocol, Version 6
203 /* Specify address family preference */
210 InetAddressHolder(String hostName, int address, int family) {
212 this.address = address;
223 * Holds a 32-bit IPv4 address.
225 int address;
228 return address;
232 * Specifies the address family type, for instance, '1' for IPv4
271 * put in the address cache, since it is not created by name.
292 * IP multicast address.
294 * an IP multicast address
302 * Utility routine to check if the InetAddress in a wildcard address.
304 * a wildcard address.
312 * Utility routine to check if the InetAddress is a loopback address.
315 * a loopback address; or false otherwise.
323 * Utility routine to check if the InetAddress is an link local address.
326 * a link local address; or false if address is not a link local unicast address.
334 * Utility routine to check if the InetAddress is a site local address.
337 * a site local address; or false if address is not a site local unicast address.
345 * Utility routine to check if the multicast address has global scope.
347 * @return a <code>boolean</code> indicating if the address has
348 * is a multicast address of global scope, false if it is not
349 * of global scope or it is not a multicast address
357 * Utility routine to check if the multicast address has node scope.
359 * @return a <code>boolean</code> indicating if the address has
360 * is a multicast address of node-local scope, false if it is not
361 * of node-local scope or it is not a multicast address
369 * Utility routine to check if the multicast address has link scope.
371 * @return a <code>boolean</code> indicating if the address has
372 * is a multicast address of link-local scope, false if it is not
373 * of link-local scope or it is not a multicast address
381 * Utility routine to check if the multicast address has site scope.
383 * @return a <code>boolean</code> indicating if the address has
384 * is a multicast address of site-local scope, false if it is not
385 * of site-local scope or it is not a multicast address
393 * Utility routine to check if the multicast address has organization scope.
395 * @return a <code>boolean</code> indicating if the address has
396 * is a multicast address of organization-local scope,
398 * or it is not a multicast address
407 * Test whether that address is reachable. Best effort is made by the
421 * @return a <code>boolean</code> indicating if the address is reachable.
431 * Test whether that address is reachable. Best effort is made by the
457 * @return a <code>boolean</code>indicating if the address is reachable.
472 * Gets the host name for this IP address.
487 * the textual representation of the IP address.
489 * @return the host name for this IP address, or if the operation
491 * representation of the IP address.
501 * Returns the hostname for this address.
502 * If the host is equal to null, then this address refers to any
511 * the hostname for this IP address, i.e., to connect to the host.
513 * the textual representation of the IP address.
515 * @return the host name for this IP address, or if the operation
517 * representation of the IP address.
531 * Gets the fully qualified domain name for this IP address.
539 * the hostname for this IP address, i.e., to connect to the host.
541 * the textual representation of the IP address.
543 * @return the fully qualified domain name for this IP address,
545 * the textual representation of the IP address.
560 * Returns the hostname for this address.
566 * the hostname for this IP address, i.e., to connect to the host.
568 * the textual representation of the IP address.
570 * @return the host name for this IP address, or if the operation
572 * representation of the IP address.
586 * the hostname for this IP address, ie, connect to the host
597 * address. We do this to try and prevent spoofing.
609 //XXX: if it looks a spoof just return the address?
630 * Returns the raw IP address of this <code>InetAddress</code>
632 * byte of the address is in <code>getAddress()[0]</code>.
634 * @return the raw IP address of this object.
641 * Returns the IP address string in textual presentation.
643 * @return the raw IP address in a string format.
651 * Returns a hashcode for this IP address.
653 * @return a hash code value for this IP address.
662 * not <code>null</code> and it represents the same IP address as
666 * address if the length of the byte arrays returned by
680 * Converts this IP address to a <code>String</code>. The
682 * address.
687 * @return a string representation of this IP address.
966 * Creates an InetAddress based on the provided host name and IP address.
967 * No name service is checked for the validity of the address.
971 * address.
974 * <p> If addr specifies an IPv4 address an instance of Inet4Address
978 * <p> IPv4 address byte array must be 4 bytes long and IPv6 byte array
982 * @param addr the raw IP address in network byte order
983 * @return an InetAddress object created from the raw IP address.
984 * @exception UnknownHostException if IP address is of illegal length
1012 * Determines the IP address of a host, given the host's name.
1016 * IP address. If a literal IP address is supplied, only the
1017 * validity of the address format is checked.
1019 * <p> For <code>host</code> specified in literal IPv6 address,
1020 * either the form defined in RFC 2732 or the literal IPv6 address
1026 * representing an address of the loopback interface is returned.
1032 * @return an IP address for the given host name.
1033 * @exception UnknownHostException if no IP address for the
1035 * for a global IPv6 address.
1056 * address. If a literal IP address is supplied, only the
1057 * validity of the address format is checked.
1059 * <p> For <code>host</code> specified in <i>literal IPv6 address</i>,
1060 * either the form defined in RFC 2732 or the literal IPv6 address
1061 * format defined in RFC 2373 is accepted. A literal IPv6 address may
1066 * representing an address of the loopback interface is returned.
1081 * @exception UnknownHostException if no IP address for the
1083 * for a global IPv6 address.
1110 // This was supposed to be a IPv6 address, but it's not!
1111 throw new UnknownHostException(host + ": invalid IPv6 address");
1115 // if host is an IP address, we won't do further lookup
1121 // see if it is IPv4 address
1124 // see if it is IPv6 address
1159 * Returns the loopback address.
1162 * loopback address, 127.0.0.1, or the IPv6 loopback
1163 * address, ::1. The IPv4 loopback address returned
1175 * check if the literal address string has %nn appended
1324 // Cache the address.
1385 * Returns an <code>InetAddress</code> object given the raw IP address .
1387 * byte of the address is in <code>getAddress()[0]</code>.
1392 * <p> IPv4 address byte array must be 4 bytes long and IPv6 byte array
1395 * @param addr the raw IP address in network byte order
1396 * @return an InetAddress object created from the raw IP address.
1397 * @exception UnknownHostException if IP address is of illegal length
1411 * Returns the address of the local host. This is achieved by retrieving
1415 * <P>Note: The resolved address may be cached for a short period of time.
1423 * the loopback address is returned.
1425 * @return the address of the local host.
1428 * be resolved into an address.
1542 throw new SecurityException ("invalid address type");
1564 throw new SecurityException ("invalid address type");
1568 int address= gf.get("address", 0);
1570 InetAddressHolder h = new InetAddressHolder(host, address, family);
1578 * @serialField address int
1583 new ObjectStreamField("address", int.class),
1590 throw new SecurityException ("invalid address type");
1594 pf.put("address", holder().address);