Interface for message handling

Synopsis

Declared in <net.h>

class NetEventsInterface;

Member Functions

Name

Description

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

Name

Description

g_msgproc_mutex

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

Protected Member Functions

Name

Description

~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

Name

Description

PeerManager

Drives the peer‐to‐peer message processing and relay logic for a node.

Created with MrDocs