IPaddress is an abstract base class for all internet protocol address
objects. Currently, only IPV4address
is implemented. An experimental implementation for IPV6, IPV6address,
is being developed.
Set the address to hostname, which can be a host name
or an IP-style address in a format dependent on implementation.
Returns true on success, false if something goes wrong
(invalid hostname or invalid IP address).
Returns the hostname which matches the IP address.
Returns a String containing the IP address.
Set the port to that corresponding to the specified service.
Returns true on success, false if something goes wrong
(invalid service).
Set the port to that corresponding to the specified service.
Returns true on success, false if something goes wrong
(invalid service).
Returns the current service.
Internally, this is the same as setting the IP address
to INADDR_ANY.
On IPV4 implementations, 0.0.0.0
On IPV6 implementations, ::
Returns true on success, false if something went wrong.
Set address to localhost.
On IPV4 implementations, 127.0.0.1
On IPV6 implementations, ::1
Returns true on success, false if something went wrong.
Determines if current address is set to localhost.
Returns true if address is localhost, false if internet address.
[This page automatically generated from the Textile source at 2023-06-13 21:31:37 +0000]