8#include <aws/io/host_resolver.h>
41 virtual aws_host_resolver *GetUnderlyingHandle() noexcept = 0;
43 virtual aws_host_resolution_config *GetConfig() noexcept = 0;
85 operator bool() const noexcept {
return m_initialized; }
90 int LastError() const noexcept {
return aws_last_error(); }
101 aws_host_resolver *GetUnderlyingHandle() noexcept
override {
return m_resolver; }
103 aws_host_resolution_config *GetConfig() noexcept
override {
return &m_config; }
106 aws_host_resolver *m_resolver;
107 aws_host_resolution_config m_config;
111 static void s_onHostResolved(
112 struct aws_host_resolver *resolver,
113 const struct aws_string *host_name,
115 const struct aws_array_list *host_addresses,
#define AWS_CRT_CPP_API
Definition: Exports.h:37
Definition: HostResolver.h:51
DefaultHostResolver & operator=(DefaultHostResolver &&)=delete
DefaultHostResolver & operator=(const DefaultHostResolver &)=delete
DefaultHostResolver(DefaultHostResolver &&)=delete
DefaultHostResolver(const DefaultHostResolver &)=delete
int LastError() const noexcept
Definition: HostResolver.h:90
Definition: EventLoopGroup.h:33
Definition: HostResolver.h:35
virtual bool ResolveHost(const String &host, const OnHostResolved &onResolved) noexcept=0
aws_host_address HostAddress
Definition: HostResolver.h:21
std::function< void(HostResolver &resolver, const Vector< HostAddress > &addresses, int errorCode)> OnHostResolved
Definition: HostResolver.h:29
aws_allocator Allocator
Definition: StlAllocator.h:17
AWS_CRT_CPP_API Allocator * g_allocator
Definition: Api.cpp:23
std::basic_string< char, std::char_traits< char >, StlAllocator< char > > String
Definition: Types.h:47
std::vector< T, StlAllocator< T > > Vector
Definition: Types.h:55