class sys.net.Host

Available on cpp, java, neko, php

A given IP host name.

Class Fields

static function localhost():String

Available on cpp, neko, php

Returns the local computer host name

static function localhost():String

Available on java

Instance Fields

var ip:Int

Available on cpp, neko, php

The actual IP corresponding to the host.

var ip:Int

Available on java

function new(name:String):Void

Available on java

function new(name:String):Void

Available on cpp, neko, php

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.

function reverse():String

Available on cpp, neko, php

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

function reverse():String

Available on java

function toString():String

Available on cpp, neko, php

Returns the IP representation of the host

function toString():String

Available on java