Go to the documentation of this file.
18 #include <aws/io/host_resolver.h>
48 virtual aws_host_resolver *GetUnderlyingHandle() noexcept = 0;
50 virtual aws_host_resolution_config *GetConfig() noexcept = 0;
76 operator bool() const noexcept {
return m_initialized; }
80 int LastError() const noexcept {
return aws_last_error(); }
91 aws_host_resolver *GetUnderlyingHandle() noexcept
override {
return &m_resolver; }
93 aws_host_resolution_config *GetConfig() noexcept
override {
return &m_config; }
96 aws_host_resolver m_resolver;
97 aws_host_resolution_config m_config;
101 static void s_onHostResolved(
102 struct aws_host_resolver *resolver,
103 const struct aws_string *host_name,
105 const struct aws_array_list *host_addresses,
aws_allocator Allocator
Definition: StlAllocator.h:25
std::vector< T, StlAllocator< T > > Vector
Definition: Types.h:66
DefaultHostResolver(DefaultHostResolver &&)=delete
DefaultHostResolver & operator=(DefaultHostResolver &&)=delete
Definition: HostResolver.h:42
std::function< void(HostResolver &resolver, const Vector< HostAddress > &addresses, int errorCode)> OnHostResolved
Definition: HostResolver.h:39
Allocator * g_allocator
Definition: Api.cpp:28
Definition: EventLoopGroup.h:43
aws_host_address HostAddress
Definition: HostResolver.h:31
int LastError() const noexcept
Definition: HostResolver.h:80
virtual ~HostResolver()
Definition: HostResolver.cpp:27
Definition: HostResolver.h:54
std::basic_string< char, std::char_traits< char >, StlAllocator< char > > String
Definition: Types.h:58
DefaultHostResolver(const DefaultHostResolver &)=delete
DefaultHostResolver & operator=(const DefaultHostResolver &)=delete
virtual bool ResolveHost(const String &host, const OnHostResolved &onResolved) noexcept=0