Method Protocols.DNS.async_client()->host_to_ip()
- Method
host_to_ip
Request
host_to_ip(string
host
,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
cancel
method.- See also
- Method
host_to_ip
variant
Concurrent.Future
host_to_ip(string
host
)- 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