Address.hx 404 B

123456789101112131415161718192021
  1. package asys.net;
  2. import haxe.io.Bytes;
  3. /**
  4. Represents a resolved IP address. The methods from `asys.net.AddressTools`
  5. are always available on `Address` instances.
  6. **/
  7. @:using(asys.net.AddressTools)
  8. enum Address {
  9. /**
  10. 32-bit IPv4 address. As an example, the IP address `127.0.0.1` is
  11. represented as `Ipv4(0x7F000001)`.
  12. **/
  13. Ipv4(raw:Int);
  14. /**
  15. 128-bit IPv6 address.
  16. **/
  17. Ipv6(raw:Bytes);
  18. }