Interface for message handling.
More...
#include <net.h>
|
| | ~NetEventsInterface ()=default |
| | Protected destructor so that instances can only be deleted by derived classes.
|
Interface for message handling.
Definition at line 1027 of file net.h.
◆ ~NetEventsInterface()
| NetEventsInterface::~NetEventsInterface |
( |
| ) |
|
|
protecteddefault |
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.
◆ FinalizeNode()
| virtual void NetEventsInterface::FinalizeNode |
( |
const CNode & | node | ) |
|
|
pure virtual |
◆ HasAllDesirableServiceFlags()
| virtual bool NetEventsInterface::HasAllDesirableServiceFlags |
( |
ServiceFlags | services | ) |
const |
|
pure virtual |
Callback to determine whether the given set of service flags are sufficient for a peer to be "relevant".
Implemented in FuzzedNetEvents.
◆ InitializeNode()
| virtual void NetEventsInterface::InitializeNode |
( |
const CNode & | node, |
|
|
ServiceFlags | our_services ) |
|
pure virtual |
◆ ProcessMessages()
| virtual bool NetEventsInterface::ProcessMessages |
( |
CNode & | node, |
|
|
std::atomic< bool > & | interrupt ) |
|
pure virtual |
Process protocol messages received from a given node.
- Parameters
-
| [in] | node | The node which we have received messages from. |
| [in] | interrupt | Interrupt condition for processing threads |
- Returns
- True if there is more work to be done
Implemented in FuzzedNetEvents.
◆ SendMessages()
| virtual bool NetEventsInterface::SendMessages |
( |
CNode & | node | ) |
|
|
pure virtual |
Send queued protocol messages to a given node.
- Parameters
-
| [in] | node | The node which we are sending messages to. |
- Returns
- True if there is more work to be done
Implemented in FuzzedNetEvents.
◆ g_msgproc_mutex
| Mutex NetEventsInterface::g_msgproc_mutex |
|
static |
Mutex for anything that is only accessed via the msg processing thread.
Definition at line 1031 of file net.h.
The documentation for this class was generated from the following files: