Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
Resolver.hpp File Reference
#include <toolbox/net/Socket.hpp>
#include <toolbox/sys/Time.hpp>
#include <toolbox/util/TaskQueue.hpp>
#include <cassert>
#include <future>
Include dependency graph for Resolver.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  toolbox::net::Resolver
 

Namespaces

namespace  toolbox
 
namespace  toolbox::net
 

Typedefs

using toolbox::net::AddrInfoFuture = std::future< AddrInfoPtr >
 

Functions

template<typename EndpointT >
EndpointT toolbox::net::get_endpoint (AddrInfoFuture &future)
 Wait for future and convert result to endpoint.
 
template<typename ResultT >
bool toolbox::net::is_ready (std::future< ResultT > &future)
 Returns true if future is ready.