C++ Actor Framework 0.19
|
Provides a network backend for running protocol stacks. More...
#include <middleman.hpp>
Public Types | |
using | module = actor_system::module |
using | module_ptr = actor_system::module_ptr |
using | void_fun_t = void(*)() |
![]() | |
enum | id_t { scheduler , middleman , openssl_manager , network_manager , num_ids } |
Public Member Functions | |
middleman (actor_system &sys) | |
void | start () override |
Starts any background threads needed by the module. | |
void | stop () override |
Stops all background threads of the module. | |
void | init (actor_system_config &) override |
Allows the module to change the configuration of the actor system during startup. | |
id_t | id () const override |
Returns the identifier of this module. | |
void * | subtype_ptr () override |
Returns a pointer to the subtype. | |
actor_system & | system () |
const actor_system_config & | config () const noexcept |
multiplexer & | mpx () noexcept |
const multiplexer & | mpx () const noexcept |
multiplexer * | mpx_ptr () const noexcept |
![]() | |
const char * | name () const noexcept |
Returns the human-readable name of the module. | |
virtual void | start ()=0 |
Starts any background threads needed by the module. | |
virtual void | stop ()=0 |
Stops all background threads of the module. | |
virtual void | init (actor_system_config &)=0 |
Allows the module to change the configuration of the actor system during startup. | |
virtual id_t | id () const =0 |
Returns the identifier of this module. | |
virtual void * | subtype_ptr ()=0 |
Returns a pointer to the subtype. | |
Static Public Member Functions | |
static void | init_global_meta_objects () |
static actor_system::global_state_guard | init_host_system () |
Initializes global state for the network backend by calling platform-dependent functions such as WSAStartup and ssl::startup() . | |
static module * | make (actor_system &sys, detail::type_list<>) |
static void | add_module_options (actor_system_config &cfg) |
Adds module-specific options to the config before loading the module. | |
Public Attributes | |
actor_system::module::id_t | id_v = actor_system::module::network_manager |
Identifies the network manager module. | |
Provides a network backend for running protocol stacks.
|
overridevirtual |
Returns the identifier of this module.
Implements caf::actor_system::module.
|
overridevirtual |
Allows the module to change the configuration of the actor system during startup.
Implements caf::actor_system::module.
|
static |
Initializes global state for the network backend by calling platform-dependent functions such as WSAStartup
and ssl::startup()
.
|
overridevirtual |
Starts any background threads needed by the module.
Implements caf::actor_system::module.
|
overridevirtual |
Stops all background threads of the module.
Implements caf::actor_system::module.
|
overridevirtual |
Returns a pointer to the subtype.
Implements caf::actor_system::module.