libfilezilla
|
Public Member Functions | |
hostname_lookup (thread_pool &pool, event_handler &evt_handler) | |
hostname_lookup (hostname_lookup const &)=delete | |
hostname_lookup & | operator= (hostname_lookup const &)=delete |
bool | lookup (native_string const &host, address_type family=address_type::unknown) |
Looks up the passed host. More... | |
void | reset () |
bool lookup | ( | native_string const & | host, |
address_type | family = address_type::unknown |
||
) |
Looks up the passed host.
If family is unknown, looks up both IPv4 and IPv6 addresses, if the operating system is configured to resolve IPv6 addresses.
If the function returns true, wait for the hostname_lookup_event before you can call it again.