Available on AIR, Android, HashLink, Linux, Neko, Windows, iOS, macOS
The IPVersion class defines constants representing the different families of IP addresses.
@:value(cast 0)@:impl@:enuminlineread onlyIPV4:IPVersion = 0
An Internet Protocol version 4 (IPv4) address.
IPv4 addresses are expressed in Haxe as a string in dot-decimal notation, such as: "192.0.2.0".
"192.0.2.0"
@:value(cast 1)@:impl@:enuminlineread onlyIPV6:IPVersion = 1
IPv6 addresses are expressed in Haxe as a string in hexadecimal-colon notation and enclosed in brackets, such as: "[2001:db8:ccc3:ffff:0:444d:555e:666f]".
"[2001:db8:ccc3:ffff:0:444d:555e:666f]"