Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
FuzzedNetEvents Class Reference

#include <net.h>

Inheritance diagram for FuzzedNetEvents:
[legend]
Collaboration diagram for FuzzedNetEvents:
[legend]

Public Member Functions

 FuzzedNetEvents (FuzzedDataProvider &fdp)
virtual void InitializeNode (const CNode &, ServiceFlags) override
 Initialize a peer (setup state).
virtual void FinalizeNode (const CNode &) override
 Handle removal of a peer (clear state).
virtual bool HasAllDesirableServiceFlags (ServiceFlags) const override
 Callback to determine whether the given set of service flags are sufficient for a peer to be "relevant".
virtual bool ProcessMessages (CNode &, std::atomic< bool > &) override
 Process protocol messages received from a given node.
virtual bool SendMessages (CNode &) override
 Send queued protocol messages to a given node.

Private Attributes

FuzzedDataProviderm_fdp

Additional Inherited Members

Static Public Attributes inherited from NetEventsInterface
static Mutex g_msgproc_mutex
 Mutex for anything that is only accessed via the msg processing thread.
Protected Member Functions inherited from NetEventsInterface
 ~NetEventsInterface ()=default
 Protected destructor so that instances can only be deleted by derived classes.

Detailed Description

Definition at line 143 of file net.h.

Constructor & Destructor Documentation

◆ FuzzedNetEvents()

FuzzedNetEvents::FuzzedNetEvents ( FuzzedDataProvider & fdp)
inline

Definition at line 146 of file net.h.

Member Function Documentation

◆ FinalizeNode()

virtual void FuzzedNetEvents::FinalizeNode ( const CNode & node)
inlineoverridevirtual

Handle removal of a peer (clear state).

Implements NetEventsInterface.

Definition at line 150 of file net.h.

◆ HasAllDesirableServiceFlags()

virtual bool FuzzedNetEvents::HasAllDesirableServiceFlags ( ServiceFlags services) const
inlineoverridevirtual

Callback to determine whether the given set of service flags are sufficient for a peer to be "relevant".

Implements NetEventsInterface.

Definition at line 152 of file net.h.

◆ InitializeNode()

virtual void FuzzedNetEvents::InitializeNode ( const CNode & node,
ServiceFlags our_services )
inlineoverridevirtual

Initialize a peer (setup state).

Implements NetEventsInterface.

Definition at line 148 of file net.h.

◆ ProcessMessages()

virtual bool FuzzedNetEvents::ProcessMessages ( CNode & node,
std::atomic< bool > & interrupt )
inlineoverridevirtual

Process protocol messages received from a given node.

Parameters
[in]nodeThe node which we have received messages from.
[in]interruptInterrupt condition for processing threads
Returns
True if there is more work to be done

Implements NetEventsInterface.

Definition at line 154 of file net.h.

◆ SendMessages()

virtual bool FuzzedNetEvents::SendMessages ( CNode & node)
inlineoverridevirtual

Send queued protocol messages to a given node.

Parameters
[in]nodeThe node which we are sending messages to.
Returns
True if there is more work to be done

Implements NetEventsInterface.

Definition at line 156 of file net.h.

Member Data Documentation

◆ m_fdp

FuzzedDataProvider& FuzzedNetEvents::m_fdp
private

Definition at line 159 of file net.h.


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