LLFIO
v2.00
|
Returned by resolve()
as a handle to the asynchronous name resolution operation.
More...
#include "byte_socket_handle.hpp"
Public Member Functions | |
const std::string & | name () const noexcept |
Returns the name being resolved. | |
const std::string & | service () const noexcept |
Returns the service being resolved. | |
bool | incomplete () const noexcept |
Returns true if the deadline expired, and the returned list of addresses is incomplete. Until get() is called, always is true. | |
result< span< address > > | get () noexcept |
Returns the array of addresses, blocking until completion if necessary, returning any error if one occurred. | |
result< void > | wait (deadline d={}) noexcept |
Wait for up the deadline for the array of addresses to be retrieved. | |
template<class Rep , class Period > | |
result< bool > | wait_for (const std::chrono::duration< Rep, Period > &duration) const noexcept |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
template<class Clock , class Duration > | |
result< bool > | wait_until (const std::chrono::time_point< Clock, Duration > &timeout) const noexcept |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
Returned by resolve()
as a handle to the asynchronous name resolution operation.