A given IP host name.

Static methods

@:has_untypedstaticlocalhost():String

Returns the local computer host name

Constructor

@:has_untypednew(name:String)

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.

Variables

read onlyhost:String

Available on php, hl, lua, neko, python, cpp, java, macro

The provided host string.

read onlyhostEntry:IPHostEntry

Available on cs

read onlyip:Int

Available on php, hl, lua, neko, python, cpp, java, macro

The actual IP corresponding to the host.

read onlyip:Int

Available on cs

The actual IP corresponding to the host.

read onlyipAddress:IPAddress

Available on cs

Methods

@:has_untypedreverse():String

Perform a reverse-DNS query to resolve a host name from an IP.

toString():String

Returns the IP representation of the host