#include <HostResolver.h>
◆ DefaultHostResolver() [1/3]
Resolves DNS addresses.
- Parameters
-
maxHosts | the number of unique hosts to maintain in the cache. |
maxTTL | how long to keep an address in the cache before evicting it. |
◆ ~DefaultHostResolver()
Aws::Crt::Io::DefaultHostResolver::~DefaultHostResolver |
( |
| ) |
|
◆ DefaultHostResolver() [2/3]
◆ DefaultHostResolver() [3/3]
◆ LastError()
int Aws::Crt::Io::DefaultHostResolver::LastError |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- the value of the last aws error encountered by operations on this instance.
◆ operator bool()
Aws::Crt::Io::DefaultHostResolver::operator bool |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- true if the instance is in a valid state, false otherwise.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ ResolveHost()
bool Aws::Crt::Io::DefaultHostResolver::ResolveHost |
( |
const String & |
host, |
|
|
const OnHostResolved & |
onResolved |
|
) |
| |
|
overridevirtualnoexcept |
Kicks off an asynchronous resolution of host. onResolved will be invoked upon completion of the resolution.
- Returns
- False, the resolution was not attempted. True, onResolved will be called with the result.
Implements Aws::Crt::Io::HostResolver.
The documentation for this class was generated from the following files:
- /home/ANT.AMAZON.COM/dengket/doc/aws-crt-cpp/include/aws/crt/io/HostResolver.h
- /home/ANT.AMAZON.COM/dengket/doc/aws-crt-cpp/source/io/HostResolver.cpp