C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::actor_system::networking_module Class Referenceabstract

An (optional) component of the actor system with networking capabilities. More...

#include <actor_system.hpp>

Inheritance diagram for caf::actor_system::networking_module:
caf::actor_system_module caf::io::middleman

Public Member Functions

virtual void monitor (const node_id &node, const actor_addr &observer)=0
 Causes the module to send a node_down_msg to observer if this system loses connection to node.
 
virtual void demonitor (const node_id &node, const actor_addr &observer)=0
 Causes the module remove one entry for observer from the list of actors that receive a node_down_msg if this system loses connection to node.
 
- 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.
 

Additional Inherited Members

- Public Types inherited from caf::actor_system_module
enum  id_t {
  middleman ,
  openssl_manager ,
  network_manager ,
  num_ids
}
 

Detailed Description

An (optional) component of the actor system with networking capabilities.

Member Function Documentation

◆ demonitor()

virtual void caf::actor_system::networking_module::demonitor ( const node_id & node,
const actor_addr & observer )
pure virtual

Causes the module remove one entry for observer from the list of actors that receive a node_down_msg if this system loses connection to node.

Each call to monitor requires one call to demonitor in order to unsubscribe the observer completely.

Implemented in caf::io::middleman.

◆ monitor()

virtual void caf::actor_system::networking_module::monitor ( const node_id & node,
const actor_addr & observer )
pure virtual

Causes the module to send a node_down_msg to observer if this system loses connection to node.

Implemented in caf::io::middleman.


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