C++ Actor Framework 1.0.0
|
Provides a callback-based interface for certain BASP events. More...
#include <instance.hpp>
Public Member Functions | |
callee (actor_system &sys, proxy_registry::backend &backend) | |
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. | |
virtual void | purge_state (const node_id &nid)=0 |
Called whenever a direct connection was closed or a node became unreachable for other reasons before this node gets erased from the routing table. | |
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. | |
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. | |
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. | |
virtual void | handle_heartbeat ()=0 |
Called if a heartbeat was received from nid | |
virtual scheduler * | current_scheduler ()=0 |
Returns the current CAF scheduler context. | |
proxy_registry & | proxies () |
Returns the actor namespace associated to this BASP protocol instance. | |
virtual byte_buffer & | get_buffer (connection_handle hdl)=0 |
Returns a reference to the sent buffer. | |
virtual void | flush (connection_handle hdl)=0 |
Flushes the underlying write buffer of hdl . | |
virtual strong_actor_ptr | this_actor ()=0 |
Returns a handle to the callee actor. | |
Protected Attributes | |
proxy_registry | namespace_ |
Provides a callback-based interface for certain BASP events.
|
pure virtual |
Returns the current CAF scheduler context.
Implemented in caf::io::basp_broker.
|
pure virtual |
Called if a server handshake was received and the connection to nid
is established.
Implemented in caf::io::basp_broker.
|
pure virtual |
Flushes the underlying write buffer of hdl
.
Implemented in caf::io::basp_broker.
|
pure virtual |
Returns a reference to the sent buffer.
Implemented in caf::io::basp_broker.
|
pure virtual |
Called if a heartbeat was received from nid
Implemented in caf::io::basp_broker.
|
pure virtual |
Called whenever BASP learns the ID of a remote node to which it does not have a direct connection.
Implemented in caf::io::basp_broker.
|
pure virtual |
Called whenever BASP learns the ID of a remote node to which it does not have a direct connection.
Implemented in caf::io::basp_broker.
|
pure virtual |
Called whenever a remote node created a proxy for one of our local actors.
Implemented in caf::io::basp_broker.
|
pure virtual |
Called whenever a direct connection was closed or a node became unreachable for other reasons before this node gets erased from the routing table.
Implemented in caf::io::basp_broker.
|
pure virtual |
Returns a handle to the callee actor.
Implemented in caf::io::basp_broker.