libfilezilla
Toggle main menu visibility
Loading...
Searching...
No Matches
lib
libfilezilla
hostname_lookup.hpp
Go to the documentation of this file.
1
#ifndef LIBFILEZILLA_HOSTNAME_LOOKUP_HEADER
2
#define LIBFILEZILLA_HOSTNAME_LOOKUP_HEADER
3
7
8
#include "
libfilezilla.hpp
"
9
#include "
iputils.hpp
"
10
#include "
event_handler.hpp
"
11
12
namespace
fz
{
13
class
FZ_PUBLIC_SYMBOL hostname_lookup
14
{
15
public
:
16
hostname_lookup(
thread_pool
& pool,
event_handler
& evt_handler);
17
~hostname_lookup();
18
19
hostname_lookup(hostname_lookup
const
&) =
delete
;
20
hostname_lookup& operator=(hostname_lookup
const
&) =
delete
;
21
30
bool
lookup
(
native_string
const
& host, address_type family = address_type::unknown);
31
32
void
reset();
33
34
private
:
35
class
impl;
36
impl* impl_{};
37
};
38
40
struct
hostname_lookup_event_type {};
41
43
typedef
simple_event<hostname_lookup_event_type, hostname_lookup*, int, std::vector<std::string>
>
hostname_lookup_event
;
44
}
45
46
#endif
fz::event_handler
Definition
event_handler.hpp:61
fz::hostname_lookup::lookup
bool lookup(native_string const &host, address_type family=address_type::unknown)
Looks up the passed host.
fz::simple_event
This is the recommended event class.
Definition
event.hpp:68
fz::thread_pool
A dumb thread-pool for asynchronous tasks.
Definition
thread_pool.hpp:64
event_handler.hpp
Declares the event_handler class.
iputils.hpp
Various functions to deal with IP address strings.
libfilezilla.hpp
Sets some global macros and further includes string.hpp.
fz
The namespace used by libfilezilla.
Definition
apply.hpp:17
fz::native_string
std::wstring native_string
A string in the system's native character type and encoding. Note: This typedef changes depending on...
Definition
string.hpp:69
fz::hostname_lookup_event
simple_event< hostname_lookup_event_type, hostname_lookup *, int, std::vector< std::string > > hostname_lookup_event
Results of hostname_lookup. On success, second argument is zero, otherwise an error code.
Definition
hostname_lookup.hpp:43
Generated by
1.17.0