rotor
Event loop friendly C++ actor micro-framework
 
Loading...
Searching...
No Matches
rotor::asio Namespace Reference

namespace for boost::asio adapters for rotor More...

Classes

struct  forwarder_base_t
 templated forwarder base class More...
 
struct  forwarder_base_t< Actor, Handler, void >
 partial specialization of forwarder base when there is no error handler More...
 
struct  forwarder_t
 
struct  forwarder_t< Actor, Handler, details::count::_0, ErrHandler >
 dispatches single boost::asio callback with error_code and non-error results into two different functions of the actor. After the invocation, actor's supervisor do_process method is called to process message queue. More...
 
struct  forwarder_t< Actor, Handler, details::count::_0, void >
 forwarder specialization for 1-argument asio-callback without error handler More...
 
struct  forwarder_t< Actor, Handler, details::count::_1, ErrHandler >
 forwarder specialization for 1-argument asio-callback More...
 
struct  forwarder_t< Actor, Handler, details::count::_1, void >
 forwarder specialization, when error case is not possible
More...
 
struct  supervisor_asio_t
 delivers rotor-messages on top of boost asio event loop using strand for serialization More...
 
struct  supervisor_config_asio_builder_t
 CRTP supervisor asio config builder. More...
 
struct  supervisor_config_asio_t
 boost::asio supervisor config, which holds pointer to strand More...
 
struct  system_context_asio_t
 The boost::asio system context, which holds a reference to boost::asio::io_context and root supervisor. More...
 

Typedefs

using supervisor_ptr_t = intrusive_ptr_t< supervisor_asio_t >
 intrusive pointer for boost::asio supervisor
 
using system_context_ptr_t = typename system_context_asio_t::ptr_t
 intrusive pointer type for boost::asio system context
 

Functions

template<typename Actor >
boost::asio::io_context::strand & get_strand (Actor &actor)
 return strand of the boost::asio aware actor
 
template<typename Actor , typename Handler >
 forwarder_t (Actor &, Handler &&) -> forwarder_t< Actor, Handler, typename details::callback_traits< Handler >::args_count, void >
 
template<typename Actor , typename Handler , typename ErrHandler >
 forwarder_t (Actor &, Handler &&, ErrHandler &&) -> forwarder_t< Actor, Handler, typename details::callback_traits< Handler >::args_count, ErrHandler >
 

Detailed Description

namespace for boost::asio adapters for rotor

Function Documentation

◆ forwarder_t() [1/2]

template<typename Actor , typename Handler >
rotor::asio::forwarder_t ( Actor &  ,
Handler &&   
) -> forwarder_t< Actor, Handler, typename details::callback_traits< Handler >::args_count, void >

construtor deduction guide for forwarder (without error handler)

◆ forwarder_t() [2/2]

template<typename Actor , typename Handler , typename ErrHandler >
rotor::asio::forwarder_t ( Actor &  ,
Handler &&  ,
ErrHandler &&   
) -> forwarder_t< Actor, Handler, typename details::callback_traits< Handler >::args_count, ErrHandler >

construtor deduction guide for forwarder (with error handler)