AWS IoT Device SDK C++ v2
1.34.0
AWS IoT Device SDK C++ v2
|
Go to the documentation of this file.
8 #include <aws/io/host_resolver.h>
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,
int LastError() const noexcept
Definition: HostResolver.h:93
AWS_CRT_CPP_API Allocator * ApiAllocator() noexcept
Definition: Allocator.cpp:24
std::function< void(HostResolver &resolver, const Vector< HostAddress > &addresses, int errorCode)> OnHostResolved
Definition: HostResolver.h:29
DefaultHostResolver & operator=(const DefaultHostResolver &)=delete
aws_host_address HostAddress
Definition: HostResolver.h:21
virtual bool ResolveHost(const String &host, const OnHostResolved &onResolved) noexcept=0
Definition: HostResolver.h:51
Definition: HostResolver.h:35
std::vector< T, StlAllocator< T > > Vector
Definition: Types.h:53
DefaultHostResolver(const DefaultHostResolver &)=delete
#define AWS_CRT_CPP_API
Definition: Exports.h:37
Definition: Allocator.h:11
aws_allocator Allocator
Definition: Allocator.h:14
DefaultHostResolver & operator=(DefaultHostResolver &&)=delete
DefaultHostResolver(DefaultHostResolver &&)=delete
std::basic_string< char, std::char_traits< char >, StlAllocator< char > > String
Definition: Types.h:45
Definition: EventLoopGroup.h:33