|
AWS IoT Device SDK C++ v2
1.40.1
AWS IoT Device SDK C++ v2
|
#include <HostResolver.h>
Public Member Functions | |
| DefaultHostResolver (EventLoopGroup &elGroup, size_t maxHosts, size_t maxTTL, Allocator *allocator=ApiAllocator()) noexcept | |
| DefaultHostResolver (size_t maxHosts, size_t maxTTL, Allocator *allocator=ApiAllocator()) noexcept | |
| ~DefaultHostResolver () | |
| DefaultHostResolver (const DefaultHostResolver &)=delete | |
| DefaultHostResolver & | operator= (const DefaultHostResolver &)=delete |
| DefaultHostResolver (DefaultHostResolver &&)=delete | |
| DefaultHostResolver & | operator= (DefaultHostResolver &&)=delete |
| operator bool () const noexcept | |
| int | LastError () const noexcept |
| bool | ResolveHost (const String &host, const OnHostResolved &onResolved) noexcept override |
Public Member Functions inherited from Aws::Crt::Io::HostResolver | |
| virtual | ~HostResolver () |
A wrapper around the CRT default host resolution system that uses getaddrinfo() farmed off to separate threads in order to resolve names.
|
noexcept |
Resolves DNS addresses.
| elGroup | EventLoopGroup to use. |
| maxHosts | the number of unique hosts to maintain in the cache. |
| maxTTL | how long to keep an address in the cache before evicting it. |
| allocator | memory allocator to use. |
|
noexcept |
Resolves DNS addresses using the default EventLoopGroup.
For more information on the default EventLoopGroup see Aws::Crt::ApiHandle::GetOrCreateStaticDefaultEventLoopGroup
| maxHosts | the number of unique hosts to maintain in the cache. |
| maxTTL | how long to keep an address in the cache before evicting it. |
| allocator | memory allocator to use. |
| Aws::Crt::Io::DefaultHostResolver::~DefaultHostResolver | ( | ) |
|
delete |
|
delete |
|
inlinenoexcept |
|
inlinenoexcept |
|
delete |
|
delete |
|
overridevirtualnoexcept |
Kicks off an asynchronous resolution of host. onResolved will be invoked upon completion of the resolution.
Implements Aws::Crt::Io::HostResolver.