8 #include <aws/io/host_resolver.h>
29 std::function<void(HostResolver &resolver, const Vector<HostAddress> &addresses,
int errorCode)>;
41 virtual aws_host_resolver *GetUnderlyingHandle() noexcept = 0;
43 virtual aws_host_resolution_config *GetConfig() noexcept = 0;
88 operator bool() const noexcept {
return m_initialized; }
93 int LastError() const noexcept {
return aws_last_error(); }
104 aws_host_resolver *GetUnderlyingHandle() noexcept
override {
return m_resolver; }
106 aws_host_resolution_config *GetConfig() noexcept
override {
return &m_config; }
109 aws_host_resolver *m_resolver;
110 aws_host_resolution_config m_config;
114 static void s_onHostResolved(
115 struct aws_host_resolver *resolver,
116 const struct aws_string *host_name,
118 const struct aws_array_list *host_addresses,
Definition: HostResolver.h:34
Definition: EventLoopGroup.h:32
#define AWS_CRT_CPP_API
Definition: Exports.h:36
std::function< void(HostResolver &resolver, const Vector< HostAddress > &addresses, int errorCode)> OnHostResolved
Definition: HostResolver.h:29
Definition: HostResolver.h:50
std::basic_string< char, std::char_traits< char >, StlAllocator< char >> String
Definition: Types.h:45
int LastError() const noexcept
Definition: HostResolver.h:93
aws_allocator Allocator
Definition: Allocator.h:14
aws_host_address HostAddress
Definition: HostResolver.h:21
AWS_CRT_CPP_API Allocator * ApiAllocator() noexcept
Definition: Allocator.cpp:24
Definition: Allocator.h:10