NetEventsInterface

Interface for message handling

Synopsis

Declared in <net.h>

class NetEventsInterface;

Member Functions

NameDescription
FinalizeNode [virtual]Handle removal of a peer (clear state).
HasAllDesirableServiceFlags [virtual]Callback to determine whether the given set of service flags are sufficient for a peer to be "relevant".
InitializeNode [virtual]Initialize a peer (setup state).
ProcessMessages [virtual]Process protocol messages received from a given node
SendMessages [virtual]Send queued protocol messages to a given node.

Static Data Members

NameDescription
g_msgproc_mutex Mutex for anything that is only accessed via the msg processing thread

Protected Member Functions

NameDescription
~NetEventsInterface [destructor]Protected destructor so that instances can only be deleted by derived classes. If that restriction is no longer desired, this should be made public and virtual.

Derived Classes

NameDescription
PeerManager Drives the peer-to-peer message processing and relay logic for a node.