libfilezilla
Public Member Functions | List of all members
hostname_lookup Class Reference

Public Member Functions

 hostname_lookup (thread_pool &pool, event_handler &evt_handler)
 
 hostname_lookup (hostname_lookup const &)=delete
 
hostname_lookupoperator= (hostname_lookup const &)=delete
 
bool lookup (native_string const &host, address_type family=address_type::unknown)
 Looks up the passed host. More...
 
void reset ()
 

Member Function Documentation

◆ lookup()

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.


The documentation for this class was generated from the following file: