W3cubDocs

/Haxe Sys

Host

package sys.net

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

A given IP host name.

Static methods

staticlocalhost():String

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

Returns the local computer host name

staticlocalhost():Unknown

Available on macro

Returns the local computer host name

Constructor

new(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

The provided host string.

read onlyhostEntry:IPHostEntry

Available on cs

read onlyip:Int

Available on cs

read onlyip:Int

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

The actual IP corresponding to the host.

read onlyipAddress:IPAddress

Available on cs

Methods

reverse():String

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

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

reverse():Unknown

Available on macro

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

toString():String

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

Returns the IP representation of the host

toString():Unknown

Available on macro

Returns the IP representation of the host

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/sys/net/Host.html