Toolbox snapshot
The Reactive C++ Toolbox
|
#include <toolbox/net/Resolver.hpp>
Public Member Functions | |
Resolver ()=default | |
~Resolver ()=default | |
Resolver (const Resolver &rhs)=delete | |
Resolver & | operator= (const Resolver &rhs)=delete |
Resolver (Resolver &&)=delete | |
Resolver & | operator= (Resolver &&)=delete |
bool | run () |
void | stop () |
Interrupt and exit any inprogress call to run(). | |
void | clear () |
Clear task queue. Any pending tasks will be cancelled, resulting in a broken promise. | |
AddrInfoFuture | resolve (std::string uri, int type) |
Schedule a URI socket name resolution. | |
The Resolver is designed to resolve socket URIs to address endpoints on a background thread, which may include a DNS lookup depending on the URI.
Definition at line 34 of file Resolver.hpp.
|
default |
|
default |
|
delete |
bool toolbox::net::Resolver::run | ( | ) |
Wait for and execute the next task in the queue.
Definition at line 24 of file Resolver.cpp.
void toolbox::net::Resolver::stop | ( | ) |
Interrupt and exit any inprogress call to run().
Definition at line 29 of file Resolver.cpp.
void toolbox::net::Resolver::clear | ( | ) |
Clear task queue. Any pending tasks will be cancelled, resulting in a broken promise.
Definition at line 34 of file Resolver.cpp.
AddrInfoFuture toolbox::net::Resolver::resolve | ( | std::string | uri, |
int | type | ||
) |
Schedule a URI socket name resolution.
Definition at line 40 of file Resolver.cpp.
Referenced by BOOST_AUTO_TEST_CASE().