net.Host

Host

package sys-net

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

A given IP 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 only host:String

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

The provided host string.

read only hostEntry:IPHostEntry

Available on cs

read only ip:Int

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

The actual IP corresponding to the host.

read only ip:Int

Available on cs

The actual IP corresponding to the host.

read only ipAddress:IPAddress

Available on cs

Methods

reverse ():String

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

toString ():String

Returns the IP representation of the host

Static methods

static localhost ():String

Returns the local computer host name

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部