C++ Actor Framework  0.18
Public Member Functions | List of all members
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:
Inheritance graph
Collaboration diagram for caf::actor_system::networking_module:
Collaboration graph

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. More...
 
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. More...
 
- Public Member Functions inherited from caf::actor_system::module
const char * name () const noexcept
 Returns the human-redable 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. More...
 
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 {
  scheduler,
  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 file: