C++ Actor Framework 0.19
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
caf::net::middleman Class Reference

Provides a network backend for running protocol stacks. More...

#include <middleman.hpp>

Inheritance diagram for caf::net::middleman:
caf::actor_system::module

Public Types

using module = actor_system::module
 
using module_ptr = actor_system::module_ptr
 
using void_fun_t = void(*)()
 
- Public Types inherited from caf::actor_system::module
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_systemsystem ()
 
const actor_system_configconfig () const noexcept
 
multiplexermpx () noexcept
 
const multiplexermpx () const noexcept
 
multiplexermpx_ptr () const noexcept
 
- Public Member Functions inherited from caf::actor_system::module
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 modulemake (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.
 

Detailed Description

Provides a network backend for running protocol stacks.

Member Function Documentation

◆ id()

id_t caf::net::middleman::id ( ) const
overridevirtual

Returns the identifier of this module.

Implements caf::actor_system::module.

◆ init()

void caf::net::middleman::init ( actor_system_config )
overridevirtual

Allows the module to change the configuration of the actor system during startup.

Implements caf::actor_system::module.

◆ init_host_system()

static actor_system::global_state_guard caf::net::middleman::init_host_system ( )
static

Initializes global state for the network backend by calling platform-dependent functions such as WSAStartup and ssl::startup().

Returns
a guard object shutting down the global state.

◆ start()

void caf::net::middleman::start ( )
overridevirtual

Starts any background threads needed by the module.

Implements caf::actor_system::module.

◆ stop()

void caf::net::middleman::stop ( )
overridevirtual

Stops all background threads of the module.

Implements caf::actor_system::module.

◆ subtype_ptr()

void * caf::net::middleman::subtype_ptr ( )
overridevirtual

Returns a pointer to the subtype.

Implements caf::actor_system::module.


The documentation for this class was generated from the following file: