Helper functions for resolving DNS queries.
primitive val DNS
new val create() : DNS val^
Gets all IPv4 and IPv6 addresses for a host and service.
fun box apply( auth: (AmbientAuth val | NetAuth val | DNSAuth val), host: String val, service: String val) : Array[NetAddress val] iso^
Gets all IPv4 addresses for a host and service.
fun box ip4( auth: (AmbientAuth val | NetAuth val | DNSAuth val), host: String val, service: String val) : Array[NetAddress val] iso^
Gets all IPv6 addresses for a host and service.
fun box ip6( auth: (AmbientAuth val | NetAuth val | DNSAuth val), host: String val, service: String val) : Array[NetAddress val] iso^
Link-local IP4 broadcast address.
fun box broadcast_ip4( auth: (AmbientAuth val | NetAuth val | DNSAuth val), service: String val) : Array[NetAddress val] iso^
Link-local IP6 broadcast address.
fun box broadcast_ip6( auth: (AmbientAuth val | NetAuth val | DNSAuth val), service: String val) : Array[NetAddress val] iso^
Returns true if the host is a literal IPv4 address.
fun box is_ip4( host: String val) : Bool val
Returns true if the host is a literal IPv6 address.
fun box is_ip6( host: String val) : Bool val
fun box eq( that: DNS val) : Bool val
fun box ne( that: DNS val) : Bool val
Turns an addrinfo pointer into an array of addresses.
fun box _resolve( auth: (AmbientAuth val | NetAuth val | DNSAuth val), family: U32 val, host: String val, service: String val) : Array[NetAddress val] iso^
© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/net-DNS