W3cubDocs

/Haxe C#

IPAddress

package cs.system.net

@:libType@:csNative@:native("System.Net.IPAddress") Available on cs

Constructor

@:final @:overload new (addr:Int64)

@:final @:overload new (address:NativeArray<UInt8>, scopeId:Int64)

@:final @:overload new (address:NativeArray<UInt8>)

Variables

Address:Int64

read only AddressFamily:AddressFamily

read only IsIPv6LinkLocal:Bool

read only IsIPv6Multicast:Bool

read only IsIPv6SiteLocal:Bool

ScopeId:Int64

Methods

@:final @:overload GetAddressBytes ():NativeArray<UInt8>

@:overload ToString ():String

Static variables

@:readOnly static read only Any:IPAddress

@:readOnly static read only Broadcast:IPAddress

@:readOnly static read only IPv6Any:IPAddress

@:readOnly static read only IPv6Loopback:IPAddress

@:readOnly static read only IPv6None:IPAddress

@:readOnly static read only Loopback:IPAddress

@:readOnly static read only None:IPAddress

Static methods

@:final @:overload static HostToNetworkOrder (host:Int16):Int16

@:final @:overload static HostToNetworkOrder (host:Int64):Int64

@:final @:overload static HostToNetworkOrder (host:Int):Int

@:final @:overload static IsLoopback (addr:IPAddress):Bool

@:final @:overload static NetworkToHostOrder (network:Int16):Int16

@:final @:overload static NetworkToHostOrder (network:Int64):Int64

@:final @:overload static NetworkToHostOrder (network:Int):Int

@:final @:overload static Parse (ipString:String):IPAddress

@:final @:overload static TryParse (ipString:String, address:Out<IPAddress>):Bool

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/cs/system/net/IPAddress.html