Method Protocols.DNS.async_client()->ip_to_host()
- Method
ip_to_host
Request
ip_to_host(string
ip
,function
(string
,string
,__unknown__
... :void
)callback
,mixed
...args
)- Description
Looks up the host name for an IP number, and when done calls the function callback with the IP number adn host name 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.
- Method
ip_to_host
variant
Concurrent.Future
ip_to_host(string
ip
)- Description
Looks up the host name for an IP number. Returns a Concurrent.Future object that resolves into the host name, or 0 if it is missing.