Function netdb::hosts::poll_host_by_addr [] [src]

pub fn poll_host_by_addr(addr: IpAddr, reactor: &Handle) -> HostByAddr

Returns host information for a given IP address.

The IP address can either be an IPv4 or IPv6 address. The function returns a future performing all necessary IO via the Tokio reactor given by reactor.

Limitations

For this initial version of the crate, the lookup is a files lookup first and only if that does fail to yield a result, a DNS query for PTR records. This initial version also does not yet fill the aliases list of the returned HostEnt.