Asio Extensions
Additional functionality built on top of (Boost.)Asio
|
An interface for customising the behaviour of an initiating function. More...
#include <asioext/async_result.hpp>
Public Types | |
typedef asio::handler_type< CompletionToken, Signature >::type | completion_handler_type |
typedef asio::async_result< completion_handler_type >::type | return_type |
Public Member Functions | |
async_result (completion_handler_type &h) | |
Construct an async result from a given handler. More... | |
return_type | get () |
Obtain the value to be returned from the initiating function. More... | |
An interface for customising the behaviour of an initiating function.
asio::async_result
if Asio 1.11.0+ is used. For prior versions this is a compatibility type that obtains the completion handler type from asio::handler_type
and the return type from asio::async_result
. typedef asio::handler_type<CompletionToken, Signature>::type asioext::async_result< CompletionToken, Signature >::completion_handler_type |
typedef asio::async_result<completion_handler_type>::type asioext::async_result< CompletionToken, Signature >::return_type |
|
inlineexplicit |
Construct an async result from a given handler.
|
inline |
Obtain the value to be returned from the initiating function.