Host

sys.net.Host (Class)

A given IP host name.

Instance Members

host: String

The provided host string.


ip: Int

The actual IP corresponding to the host.


toString(): String

Returns the IP representation of the host

Returns
String

new(name: String): Void

Creates a new Host : the name can be an IP in the form "127.0.0.1" or an host name such as "google.com", in which case the corresponding IP address is resolved using DNS. An exception occur if the host name could not be found.

Name Type
name String

Private Members