![]() |
Bitcoin Core 31.0.0
P2P Digital Currency
|
Interface for message handling. More...
#include <net.h>
Public Member Functions | |
| virtual void | InitializeNode (const CNode &node, ServiceFlags our_services)=0 |
| Initialize a peer (setup state) | |
| virtual void | FinalizeNode (const CNode &node)=0 |
| Handle removal of a peer (clear state) | |
| virtual bool | HasAllDesirableServiceFlags (ServiceFlags services) const =0 |
| Callback to determine whether the given set of service flags are sufficient for a peer to be "relevant". | |
| virtual bool | ProcessMessages (CNode &node, std::atomic< bool > &interrupt) EXCLUSIVE_LOCKS_REQUIRED(g_msgproc_mutex)=0 |
| Process protocol messages received from a given node. | |
| virtual bool | SendMessages (CNode &node) EXCLUSIVE_LOCKS_REQUIRED(g_msgproc_mutex)=0 |
| Send queued protocol messages to a given node. | |
Static Public Attributes | |
| static Mutex | g_msgproc_mutex |
| Mutex for anything that is only accessed via the msg processing thread. | |
Protected Member Functions | |
| ~NetEventsInterface ()=default | |
| Protected destructor so that instances can only be deleted by derived classes. | |
|
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.
Handle removal of a peer (clear state)
Implemented in FuzzedNetEvents.
|
pure virtual |
Callback to determine whether the given set of service flags are sufficient for a peer to be "relevant".
Implemented in FuzzedNetEvents.
|
pure virtual |
Initialize a peer (setup state)
Implemented in FuzzedNetEvents.
|
pure virtual |
Process protocol messages received from a given node.
| [in] | node | The node which we have received messages from. |
| [in] | interrupt | Interrupt condition for processing threads |
Implemented in FuzzedNetEvents.
Send queued protocol messages to a given node.
| [in] | node | The node which we are sending messages to. |
Implemented in FuzzedNetEvents.
|
static |