DnsLookupOptions.hx 316 B

12345678910111213141516
  1. package asys.net;
  2. typedef DnsLookupOptions = {
  3. ?family:IpFamily,
  4. ?hints:DnsHints
  5. };
  6. enum abstract DnsHints(Int) from Int {
  7. var AddrConfig = 1 << 0;
  8. var V4Mapped = 1 << 1;
  9. inline function get_raw():Int return this;
  10. @:op(A | B)
  11. inline function join(other:DnsHints):DnsHints return this | other.get_raw();
  12. }