![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
Information about a peer. More...
#include <net.h>
Public Member Functions | |
| std::chrono::microseconds m_next_addr_send | GUARDED_BY (cs_sendProcessing) |
| std::chrono::microseconds m_next_local_addr_send | GUARDED_BY (cs_sendProcessing) |
| CNode (NodeId id, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn, SOCKET hSocketIn, const CAddress &addrIn, uint64_t nKeyedNetGroupIn, uint64_t nLocalHostNonceIn, const std::string &addrNameIn="", bool fInboundIn=false) | |
| ~CNode () | |
| CNode (const CNode &)=delete | |
| CNode & | operator= (const CNode &)=delete |
| NodeId | GetId () const |
| uint64_t | GetLocalNonce () const |
| int | GetMyStartingHeight () const |
| int | GetRefCount () |
| unsigned int | GetTotalRecvSize () |
| bool | ReceiveMsgBytes (const char *pch, unsigned int nBytes, bool &complete) |
| void | SetRecvVersion (int nVersionIn) |
| int | GetRecvVersion () |
| void | SetSendVersion (int nVersionIn) |
| int | GetSendVersion () const |
| CService | GetAddrLocal () const |
| void | SetAddrLocal (const CService &addrLocalIn) |
| May not be called more than once. More... | |
| CNode * | AddRef () |
| void | Release () |
| void | AddAddressKnown (const CAddress &_addr) |
| void | PushAddress (const CAddress &_addr, FastRandomContext &insecure_rand) |
| void | AddInventoryKnown (const CInv &inv) |
| void | PushInventory (const CInv &inv) |
| void | AskFor (const CInv &inv, int64_t doubleRequestDelay=2 *60 *1000000) |
| void | AskForInvReceived (const uint256 &invHash) |
| void | CloseSocketDisconnect () |
| bool | DisconnectOldProtocol (int nVersionIn, int nVersionRequired) |
| void | copyStats (CNodeStats &stats, const std::vector< bool > &m_asmap) |
| ServiceFlags | GetLocalServices () const |
| std::string | GetAddrName () const |
| void | MaybeSetAddrName (const std::string &addrNameIn) |
| Sets the addrName only if it was not previously set. More... | |
| bool | CanRelay () const |
Protected Attributes | |
| mapMsgCmdSize | mapSendBytesPerMsgCmd |
| mapMsgCmdSize | mapRecvBytesPerMsgCmd |
Private Attributes | |
| const NodeId | id |
| const uint64_t | nLocalHostNonce |
| const ServiceFlags | nLocalServices |
| const int | nMyStartingHeight |
| int | nSendVersion |
| std::list< CNetMessage > | vRecvMsg |
| RecursiveMutex | cs_addrName |
| std::string | addrName |
| CService | addrLocal |
| RecursiveMutex | cs_addrLocal |
Friends | |
| class | CConnman |
| CNode::CNode | ( | NodeId | id, |
| ServiceFlags | nLocalServicesIn, | ||
| int | nMyStartingHeightIn, | ||
| SOCKET | hSocketIn, | ||
| const CAddress & | addrIn, | ||
| uint64_t | nKeyedNetGroupIn, | ||
| uint64_t | nLocalHostNonceIn, | ||
| const std::string & | addrNameIn = "", |
||
| bool | fInboundIn = false |
||
| ) |
| CNode::~CNode | ( | ) |
|
delete |
|
inline |
|
inline |
|
inline |
| void CNode::AskFor | ( | const CInv & | inv, |
| int64_t | doubleRequestDelay = 2 * 60 * 1000000 |
||
| ) |
|
inline |
| void CNode::CloseSocketDisconnect | ( | ) |
| void CNode::copyStats | ( | CNodeStats & | stats, |
| const std::vector< bool > & | m_asmap | ||
| ) |
| bool CNode::DisconnectOldProtocol | ( | int | nVersionIn, |
| int | nVersionRequired | ||
| ) |
| CService CNode::GetAddrLocal | ( | ) | const |
| std::string CNode::GetAddrName | ( | ) | const |
|
inline |
|
inline |
| int CNode::GetSendVersion | ( | ) | const |
|
inline |
|
inline |
| void CNode::MaybeSetAddrName | ( | const std::string & | addrNameIn | ) |
|
inline |
|
inline |
| bool CNode::ReceiveMsgBytes | ( | const char * | pch, |
| unsigned int | nBytes, | ||
| bool & | complete | ||
| ) |
|
inline |
| void CNode::SetAddrLocal | ( | const CService & | addrLocalIn | ) |
| void CNode::SetSendVersion | ( | int | nVersionIn | ) |
| CRollingBloomFilter CNode::addrKnown |
|
mutableprivate |
|
mutableprivate |
| RecursiveMutex CNode::cs_filter |
| RecursiveMutex CNode::cs_hSocket |
| RecursiveMutex CNode::cs_inventory |
| RecursiveMutex CNode::cs_sendProcessing |
| RecursiveMutex CNode::cs_SubVer |
| RecursiveMutex CNode::cs_vProcessMsg |
| RecursiveMutex CNode::cs_vRecv |
| RecursiveMutex CNode::cs_vSend |
| CRollingBloomFilter CNode::filterInventoryKnown |
| CSemaphoreGrant CNode::grantOutbound |
| double CNode::m_addr_token_bucket {10.0} |
| std::chrono::microseconds CNode::m_addr_token_timestamp {GetTime<std::chrono::microseconds>()} |
| std::atomic<bool> CNode::m_masternode_probe_connection {false} |
| std::atomic_bool CNode::m_wants_addrv2 {false} |
|
protected |
|
protected |
|
private |
| std::atomic<ServiceFlags> CNode::nServices |
| ServiceFlags CNode::nServicesExpected |
| std::unique_ptr<CBloomFilter> CNode::pfilter |
| std::list<CNetMessage> CNode::vProcessMsg |
|
private |