Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
dev::p2p::NodeTableEventHandler Class Referenceabstract

#include <NodeTable.h>

Inheritance diagram for dev::p2p::NodeTableEventHandler:
[legend]

Public Member Functions

virtual void processEvent (NodeID const &_n, NodeTableEventType const &_e)=0
 

Protected Member Functions

void processEvents ()
 Called by NodeTable on behalf of an implementation (Host) to process new events without blocking nodetable. More...
 
virtual void appendEvent (NodeID _n, NodeTableEventType _e)
 Called by NodeTable to append event. More...
 

Protected Attributes

Mutex x_events
 
std::list< NodeIDm_nodeEventHandler
 
std::unordered_map< NodeID, NodeTableEventTypem_events
 

Friends

class NodeTable
 

Detailed Description

Definition at line 55 of file NodeTable.h.

Member Function Documentation

virtual void dev::p2p::NodeTableEventHandler::appendEvent ( NodeID  _n,
NodeTableEventType  _e 
)
inlineprotectedvirtual

Called by NodeTable to append event.

Definition at line 81 of file NodeTable.h.

virtual void dev::p2p::NodeTableEventHandler::processEvent ( NodeID const &  _n,
NodeTableEventType const &  _e 
)
pure virtual
void dev::p2p::NodeTableEventHandler::processEvents ( )
inlineprotected

Called by NodeTable on behalf of an implementation (Host) to process new events without blocking nodetable.

Definition at line 63 of file NodeTable.h.

Friends And Related Function Documentation

friend class NodeTable
friend

Definition at line 57 of file NodeTable.h.

Member Data Documentation

std::unordered_map<NodeID, NodeTableEventType> dev::p2p::NodeTableEventHandler::m_events
protected

Definition at line 85 of file NodeTable.h.

std::list<NodeID> dev::p2p::NodeTableEventHandler::m_nodeEventHandler
protected

Definition at line 84 of file NodeTable.h.

Mutex dev::p2p::NodeTableEventHandler::x_events
protected

Definition at line 83 of file NodeTable.h.


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