libcaf  0.14.4
Public Member Functions | Protected Attributes | List of all members
caf::io::basp::instance::callee Class Referenceabstract

Provides a callback-based interface for certain BASP events. More...

#include <basp.hpp>

Inherited by caf::io::basp_broker_state.

Public Member Functions

 callee (actor_namespace::backend &mgm, middleman &mm)
 
virtual void finalize_handshake (const node_id &nid, actor_id aid, std::set< std::string > &sigs)=0
 Called if a server handshake was received and the connection to nid is established. More...
 
virtual void purge_state (const node_id &nid)=0
 Called whenever a direct connection was closed or a node became unrechable for other reasons before this node gets erased from the routing table. More...
 
virtual void proxy_announced (const node_id &nid, actor_id aid)=0
 Called whenever a remote node created a proxy for one of our local actors. More...
 
virtual void kill_proxy (const node_id &nid, actor_id aid, uint32_t rsn)=0
 Called whenever a remote actor died to destroy the proxy instance on our end. More...
 
virtual void deliver (const node_id &source_node, actor_id source_actor, const node_id &dest_node, actor_id dest_actor, message &msg, message_id mid)=0
 Called whenever a dispatch_message arrived for a local actor.
 
virtual void learned_new_node_directly (const node_id &nid, bool was_known_indirectly)=0
 Called whenever BASP learns the ID of a remote node to which it does not have a direct connection. More...
 
virtual void learned_new_node_indirectly (const node_id &nid)=0
 Called whenever BASP learns the ID of a remote node to which it does not have a direct connection. More...
 
actor_namespaceget_namespace ()
 Returns the actor namespace associated to this BASP protocol instance.
 
middlemanget_middleman ()
 

Protected Attributes

actor_namespace namespace_
 
middlemanmiddleman_
 

Detailed Description

Provides a callback-based interface for certain BASP events.

Member Function Documentation

virtual void caf::io::basp::instance::callee::finalize_handshake ( const node_id nid,
actor_id  aid,
std::set< std::string > &  sigs 
)
pure virtual

Called if a server handshake was received and the connection to nid is established.

virtual void caf::io::basp::instance::callee::kill_proxy ( const node_id nid,
actor_id  aid,
uint32_t  rsn 
)
pure virtual

Called whenever a remote actor died to destroy the proxy instance on our end.

virtual void caf::io::basp::instance::callee::learned_new_node_directly ( const node_id nid,
bool  was_known_indirectly 
)
pure virtual

Called whenever BASP learns the ID of a remote node to which it does not have a direct connection.

virtual void caf::io::basp::instance::callee::learned_new_node_indirectly ( const node_id nid)
pure virtual

Called whenever BASP learns the ID of a remote node to which it does not have a direct connection.

virtual void caf::io::basp::instance::callee::proxy_announced ( const node_id nid,
actor_id  aid 
)
pure virtual

Called whenever a remote node created a proxy for one of our local actors.

virtual void caf::io::basp::instance::callee::purge_state ( const node_id nid)
pure virtual

Called whenever a direct connection was closed or a node became unrechable for other reasons before this node gets erased from the routing table.

Warning
The implementing class must not modify the routing table from this callback.

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