Method Protocols.DNS.async_client()->host_to_ip()
- Method
host_to_ip
Requesthost_to_ip(stringhost,function(string,string,__unknown__... :void)callback,mixed...args)- Description
Looks up the IPv4 address for a host, and when done calls the function callback with the host name and IP number as arguments.
- Returns
Returns a Request object where progress can be observed from the retries variable and the request can be cancelled using the
cancelmethod.- See also
- Method
host_to_ip
variantConcurrent.Futurehost_to_ip(stringhost)- Description
Looks up the IPv4 address for a host. Returns a Concurrent.Future object that resolves into the IP number as a string, or 0 if it is missing.
- See also