Dogecoin Core  1.14.2
P2P Digital Currency
Classes | Functions
net_processing.h File Reference
#include "net.h"
#include "validationinterface.h"
Include dependency graph for net_processing.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PeerLogicValidation
 
struct  CNodeStateStats
 

Functions

void RegisterNodeSignals (CNodeSignals &nodeSignals)
 Register with a network node to receive its signals. More...
 
void UnregisterNodeSignals (CNodeSignals &nodeSignals)
 Unregister a network node. More...
 
bool GetNodeStateStats (NodeId nodeid, CNodeStateStats &stats)
 Get statistics from node state. More...
 
void Misbehaving (NodeId nodeid, int howmuch)
 Increase a node's misbehavior score. More...
 
bool ProcessMessages (CNode *pfrom, CConnman &connman, const std::atomic< bool > &interrupt)
 Process protocol messages received from a given node. More...
 
bool SendMessages (CNode *pto, CConnman &connman, const std::atomic< bool > &interrupt)
 Send queued protocol messages to be sent to a give node. More...
 

Function Documentation

◆ GetNodeStateStats()

bool GetNodeStateStats ( NodeId  nodeid,
CNodeStateStats stats 
)

Get statistics from node state.

Definition at line 560 of file net_processing.cpp.

Here is the caller graph for this function:

◆ Misbehaving()

void Misbehaving ( NodeId  nodeid,
int  howmuch 
)

Increase a node's misbehavior score.

Definition at line 711 of file net_processing.cpp.

Here is the call graph for this function:

◆ ProcessMessages()

bool ProcessMessages ( CNode pfrom,
CConnman connman,
const std::atomic< bool > &  interrupt 
)

Process protocol messages received from a given node.

Definition at line 2673 of file net_processing.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RegisterNodeSignals()

void RegisterNodeSignals ( CNodeSignals nodeSignals)

Register with a network node to receive its signals.

Definition at line 575 of file net_processing.cpp.

Here is the call graph for this function:

◆ SendMessages()

bool SendMessages ( CNode pto,
CConnman connman,
const std::atomic< bool > &  interrupt 
)

Send queued protocol messages to be sent to a give node.

Parameters
[in]ptoThe node which we are sending messages to.
[in]connmanThe connection manager for that node.
[in]interruptInterrupt condition for processing threads
Returns
True if there is more work to be done

Definition at line 2810 of file net_processing.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UnregisterNodeSignals()

void UnregisterNodeSignals ( CNodeSignals nodeSignals)

Unregister a network node.

Definition at line 583 of file net_processing.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: