![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <net.h>
Classes | |
struct | CAllNodes |
struct | CFullyConnectedOnly |
struct | ListenSocket |
struct | Options |
Public Types | |
enum | NumConnections { CONNECTIONS_NONE = 0, CONNECTIONS_IN = (1U << 0), CONNECTIONS_OUT = (1U << 1), CONNECTIONS_ALL = (CONNECTIONS_IN | CONNECTIONS_OUT) } |
Public Member Functions | |
CConnman () | |
~CConnman () | |
bool | Start (CScheduler &scheduler, std::string &strNodeError, Options options) |
void | Stop () |
void | Interrupt () |
bool | BindListenPort (const CService &bindAddr, std::string &strError, bool fWhitelisted=false) |
bool | GetNetworkActive () const |
void | SetNetworkActive (bool active) |
bool | OpenNetworkConnection (const CAddress &addrConnect, CSemaphoreGrant *grantOutbound=NULL, const char *strDest=NULL, bool fOneShot=false, bool fFeeler=false) |
bool | CheckIncomingNonce (uint64_t nonce) |
CNode * | ConnectNode (CAddress addrConnect, const char *pszDest=NULL, bool fConnectToMasternode=false) |
bool | ForNode (NodeId id, std::function< bool(const CNode *pnode)> cond, std::function< bool(CNode *pnode)> func) |
bool | ForNode (const CService &addr, std::function< bool(const CNode *pnode)> cond, std::function< bool(CNode *pnode)> func) |
template<typename Callable > | |
bool | ForNode (const CService &addr, Callable &&func) |
template<typename Callable > | |
bool | ForNode (NodeId id, Callable &&func) |
template<typename... Args> | |
void | PushMessageWithVersionAndFlag (CNode *pnode, int nVersion, int flag, const std::string &sCommand, Args &&... args) |
template<typename... Args> | |
void | PushMessageWithFlag (CNode *pnode, int flag, const std::string &sCommand, Args &&... args) |
template<typename... Args> | |
void | PushMessageWithVersion (CNode *pnode, int nVersion, const std::string &sCommand, Args &&... args) |
template<typename... Args> | |
void | PushMessage (CNode *pnode, const std::string &sCommand, Args &&... args) |
template<typename Condition , typename Callable > | |
bool | ForEachNodeContinueIf (const Condition &cond, Callable &&func) |
template<typename Callable > | |
bool | ForEachNodeContinueIf (Callable &&func) |
template<typename Condition , typename Callable > | |
bool | ForEachNodeContinueIf (const Condition &cond, Callable &&func) const |
template<typename Callable > | |
bool | ForEachNodeContinueIf (Callable &&func) const |
template<typename Condition , typename Callable > | |
void | ForEachNode (const Condition &cond, Callable &&func) |
template<typename Callable > | |
void | ForEachNode (Callable &&func) |
template<typename Condition , typename Callable > | |
void | ForEachNode (const Condition &cond, Callable &&func) const |
template<typename Callable > | |
void | ForEachNode (Callable &&func) const |
template<typename Condition , typename Callable , typename CallableAfter > | |
void | ForEachNodeThen (const Condition &cond, Callable &&pre, CallableAfter &&post) |
template<typename Callable , typename CallableAfter > | |
void | ForEachNodeThen (Callable &&pre, CallableAfter &&post) |
template<typename Condition , typename Callable , typename CallableAfter > | |
void | ForEachNodeThen (const Condition &cond, Callable &&pre, CallableAfter &&post) const |
template<typename Callable , typename CallableAfter > | |
void | ForEachNodeThen (Callable &&pre, CallableAfter &&post) const |
std::vector< CNode * > | CopyNodeVector () |
void | ReleaseNodeVector (const std::vector< CNode *> &vecNodes) |
void | RelayTransaction (const CTransaction &tx) |
void | RelayTransaction (const CTransaction &tx, const CDataStream &ss) |
void | RelayInv (CInv &inv, const int minProtoVersion=MIN_PEER_PROTO_VERSION) |
size_t | GetAddressCount () const |
void | SetServices (const CService &addr, ServiceFlags nServices) |
void | MarkAddressGood (const CAddress &addr) |
void | AddNewAddress (const CAddress &addr, const CAddress &addrFrom, int64_t nTimePenalty=0) |
void | AddNewAddresses (const std::vector< CAddress > &vAddr, const CAddress &addrFrom, int64_t nTimePenalty=0) |
std::vector< CAddress > | GetAddresses () |
void | AddressCurrentlyConnected (const CService &addr) |
void | Ban (const CNetAddr &netAddr, const BanReason &reason, int64_t bantimeoffset=0, bool sinceUnixEpoch=false) |
void | Ban (const CSubNet &subNet, const BanReason &reason, int64_t bantimeoffset=0, bool sinceUnixEpoch=false) |
void | ClearBanned () |
bool | IsBanned (CNetAddr ip) |
bool | IsBanned (CSubNet subnet) |
bool | Unban (const CNetAddr &ip) |
bool | Unban (const CSubNet &ip) |
void | GetBanned (banmap_t &banmap) |
void | SetBanned (const banmap_t &banmap) |
void | AddOneShot (const std::string &strDest) |
bool | AddNode (const std::string &node) |
bool | RemoveAddedNode (const std::string &node) |
std::vector< AddedNodeInfo > | GetAddedNodeInfo () |
size_t | GetNodeCount (NumConnections num) |
void | GetNodeStats (std::vector< CNodeStats > &vstats) |
bool | DisconnectNode (const std::string &node) |
bool | DisconnectNode (NodeId id) |
unsigned int | GetSendBufferSize () const |
void | AddWhitelistedRange (const CSubNet &subnet) |
ServiceFlags | GetLocalServices () const |
void | SetMaxOutboundTarget (uint64_t limit) |
set the max outbound target in bytes More... | |
uint64_t | GetMaxOutboundTarget () |
void | SetMaxOutboundTimeframe (uint64_t timeframe) |
set the timeframe for the max outbound target More... | |
uint64_t | GetMaxOutboundTimeframe () |
bool | OutboundTargetReached (bool historicalBlockServingLimit) |
check if the outbound target is reached More... | |
uint64_t | GetOutboundTargetBytesLeft () |
response the bytes left in the current max outbound cycle More... | |
uint64_t | GetMaxOutboundTimeLeftInCycle () |
response the time in second left in the current max outbound cycle More... | |
uint64_t | GetTotalBytesRecv () |
uint64_t | GetTotalBytesSent () |
void | SetBestHeight (int height) |
int | GetBestHeight () const |
unsigned int | GetReceiveFloodSize () const |
Static Public Attributes | |
static constexpr const CFullyConnectedOnly | FullyConnectedOnly {} |
static constexpr const CAllNodes | AllNodes {} |
Private Member Functions | |
void | ThreadOpenAddedConnections () |
void | ProcessOneShot () |
void | ThreadOpenConnections () |
void | ThreadMessageHandler () |
void | AcceptConnection (const ListenSocket &hListenSocket) |
void | ThreadSocketHandler () |
void | ThreadDNSAddressSeed () |
void | ThreadMnbRequestConnections () |
void | WakeMessageHandler () |
CNode * | FindNode (const CNetAddr &ip) |
CNode * | FindNode (const CSubNet &subNet) |
CNode * | FindNode (const std::string &addrName) |
CNode * | FindNode (const CService &addr) |
bool | AttemptToEvictConnection () |
bool | IsWhitelistedRange (const CNetAddr &addr) |
void | DeleteNode (CNode *pnode) |
NodeId | GetNewNodeId () |
size_t | SocketSendData (CNode *pnode) |
bool | BannedSetIsDirty () |
check is the banlist has unwritten changes More... | |
void | SetBannedSetDirty (bool dirty=true) |
set the "dirty" flag for the banlist More... | |
void | SweepBanned () |
clean unused entries (if bantime has expired) More... | |
void | DumpAddresses () |
void | DumpData () |
void | DumpBanlist () |
CDataStream | BeginMessage (CNode *node, int nVersion, int flags, const std::string &sCommand) |
void | PushMessage (CNode *pnode, CDataStream &strm, const std::string &sCommand) |
void | EndMessage (CDataStream &strm) |
void | RecordBytesRecv (uint64_t bytes) |
void | RecordBytesSent (uint64_t bytes) |
Static Private Member Functions | |
static bool | NodeFullyConnected (const CNode *pnode) |
|
private |
Definition at line 1023 of file net.cpp.
Referenced by ThreadSocketHandler().
void CConnman::AddNewAddress | ( | const CAddress & | addr, |
const CAddress & | addrFrom, | ||
int64_t | nTimePenalty = 0 |
||
) |
Definition at line 2390 of file net.cpp.
Referenced by CMasternodeMan::ProcessMessage().
void CConnman::AddNewAddresses | ( | const std::vector< CAddress > & | vAddr, |
const CAddress & | addrFrom, | ||
int64_t | nTimePenalty = 0 |
||
) |
Definition at line 2395 of file net.cpp.
Referenced by ProcessMessage().
void CConnman::AddOneShot | ( | const std::string & | strDest | ) |
Definition at line 94 of file net.cpp.
Referenced by ProcessOneShot(), and ThreadDNSAddressSeed().
void CConnman::AddressCurrentlyConnected | ( | const CService & | addr | ) |
void CConnman::AddWhitelistedRange | ( | const CSubNet & | subnet | ) |
|
private |
Try to find a connection to evict when the node is full. Extreme care must be taken to avoid opening the node to attacker triggered network partitioning. The strategy used here is to protect a small number of peers for each of several distinct characteristics which are difficult to forge. In order to partition a node the attacker must be simultaneously better at all of them than honest peers.
Definition at line 924 of file net.cpp.
Referenced by AcceptConnection().
void CConnman::Ban | ( | const CNetAddr & | netAddr, |
const BanReason & | reason, | ||
int64_t | bantimeoffset = 0 , |
||
bool | sinceUnixEpoch = false |
||
) |
Definition at line 517 of file net.cpp.
Referenced by SendMessages().
|
private |
check is the banlist has unwritten changes
Definition at line 606 of file net.cpp.
Referenced by DumpBanlist().
|
private |
Definition at line 2817 of file net.cpp.
Referenced by PushMessageWithVersionAndFlag().
bool CConnman::BindListenPort | ( | const CService & | bindAddr, |
std::string & | strError, | ||
bool | fWhitelisted = false |
||
) |
bool CConnman::CheckIncomingNonce | ( | uint64_t | nonce | ) |
Definition at line 337 of file net.cpp.
Referenced by ProcessMessage().
CNode * CConnman::ConnectNode | ( | CAddress | addrConnect, |
const char * | pszDest = NULL , |
||
bool | fConnectToMasternode = false |
||
) |
debug print
Definition at line 347 of file net.cpp.
Referenced by CPrivateSendClient::JoinExistingQueue(), CActiveMasternode::ManageStateInitial(), OpenNetworkConnection(), CMasternodeMan::SendVerifyRequest(), CPrivateSendClient::StartNewQueue(), and ThreadMnbRequestConnections().
std::vector< CNode * > CConnman::CopyNodeVector | ( | ) |
Definition at line 2896 of file net.cpp.
Referenced by CMasternodeSync::ProcessTick(), CDarksendQueue::Relay(), CGovernanceManager::RequestOrphanObjects(), ThreadMessageHandler(), and ThreadSocketHandler().
|
private |
Definition at line 2359 of file net.cpp.
Referenced by Stop(), and ThreadSocketHandler().
|
private |
Definition at line 1585 of file net.cpp.
Referenced by DumpData(), and Start().
|
private |
Definition at line 442 of file net.cpp.
Referenced by Ban(), ClearBanned(), DumpData(), Start(), and Unban().
|
private |
|
private |
Definition at line 2822 of file net.cpp.
Referenced by PushMessageWithVersionAndFlag().
Definition at line 301 of file net.cpp.
Referenced by ConnectNode(), DisconnectNode(), OpenNetworkConnection(), and ThreadMnbRequestConnections().
|
private |
|
inline |
Definition at line 239 of file net.h.
Referenced by CMasternodeSync::ClearFulfilledRequests(), ForEachNode(), CMasternodeMan::ProcessMasternodeConnections(), ProcessMessage(), CMasternodeSync::SwitchToNextAsset(), ThreadSendAlert(), and PeerLogicValidation::UpdatedBlockTip().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 205 of file net.h.
Referenced by ForEachNodeContinueIf(), and CActiveMasternode::ManageStateInitial().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 271 of file net.h.
Referenced by ForEachNodeThen(), and RelayAddress().
|
inline |
|
inline |
|
inline |
bool CConnman::ForNode | ( | NodeId | id, |
std::function< bool(const CNode *pnode)> | cond, | ||
std::function< bool(CNode *pnode)> | func | ||
) |
Definition at line 2879 of file net.cpp.
Referenced by ForNode(), CPrivateSendClient::JoinExistingQueue(), CPrivateSendServer::RelayCompletedTransaction(), CPrivateSendServer::RelayFinalTransaction(), CPrivateSendClient::RelayIn(), CPrivateSendServer::RelayStatus(), and CPrivateSendClient::StartNewQueue().
|
inline |
|
inline |
std::vector< AddedNodeInfo > CConnman::GetAddedNodeInfo | ( | ) |
Definition at line 1764 of file net.cpp.
Referenced by ThreadOpenAddedConnections().
size_t CConnman::GetAddressCount | ( | ) | const |
Definition at line 2375 of file net.cpp.
Referenced by ProcessMessage().
std::vector< CAddress > CConnman::GetAddresses | ( | ) |
Definition at line 2400 of file net.cpp.
Referenced by ProcessMessage().
void CConnman::GetBanned | ( | banmap_t & | banmap | ) |
Definition at line 572 of file net.cpp.
Referenced by DumpBanlist().
int CConnman::GetBestHeight | ( | ) | const |
Definition at line 2657 of file net.cpp.
Referenced by AcceptConnection(), ConnectNode(), and Start().
ServiceFlags CConnman::GetLocalServices | ( | ) | const |
uint64_t CConnman::GetMaxOutboundTimeLeftInCycle | ( | ) |
response the time in second left in the current max outbound cycle
Definition at line 2580 of file net.cpp.
Referenced by OutboundTargetReached().
|
private |
Definition at line 2151 of file net.cpp.
Referenced by AcceptConnection(), ConnectNode(), and Start().
size_t CConnman::GetNodeCount | ( | NumConnections | num | ) |
Definition at line 2429 of file net.cpp.
Referenced by BitcoinMiner(), and ThreadSendAlert().
void CConnman::GetNodeStats | ( | std::vector< CNodeStats > & | vstats | ) |
uint64_t CConnman::GetOutboundTargetBytesLeft | ( | ) |
unsigned int CConnman::GetReceiveFloodSize | ( | ) | const |
Definition at line 2662 of file net.cpp.
Referenced by ProcessMessages().
void CConnman::Interrupt | ( | ) |
Definition at line 2290 of file net.cpp.
Referenced by ~CConnman().
bool CConnman::IsBanned | ( | CNetAddr | ip | ) |
Definition at line 484 of file net.cpp.
Referenced by AcceptConnection(), and OpenNetworkConnection().
|
private |
Definition at line 619 of file net.cpp.
Referenced by AcceptConnection().
void CConnman::MarkAddressGood | ( | const CAddress & | addr | ) |
Definition at line 2385 of file net.cpp.
Referenced by ProcessMessage().
|
staticprivate |
Definition at line 2791 of file net.cpp.
Referenced by CConnman::CFullyConnectedOnly::operator()().
bool CConnman::OpenNetworkConnection | ( | const CAddress & | addrConnect, |
CSemaphoreGrant * | grantOutbound = NULL , |
||
const char * | strDest = NULL , |
||
bool | fOneShot = false , |
||
bool | fFeeler = false |
||
) |
Definition at line 1886 of file net.cpp.
Referenced by ProcessOneShot(), ThreadOpenAddedConnections(), and ThreadOpenConnections().
bool CConnman::OutboundTargetReached | ( | bool | historicalBlockServingLimit | ) |
check if the outbound target is reached
Definition at line 2606 of file net.cpp.
Referenced by ProcessGetData(), and ProcessMessage().
|
private |
Definition at line 1602 of file net.cpp.
Referenced by ThreadOpenConnections().
|
inline |
Definition at line 199 of file net.h.
Referenced by CMasternodeMan::AskForMN(), CMasternodeMan::DsegUpdate(), CPrivateSendClient::JoinExistingQueue(), ProcessGetData(), CMasternodeMan::ProcessMessage(), ProcessMessage(), CSporkManager::ProcessSpork(), CMasternodeSync::ProcessTick(), PushMessageWithVersionAndFlag(), CPrivateSendServer::PushStatus(), CDarksendQueue::Relay(), CAlert::RelayTo(), CGovernanceManager::RequestGovernanceObject(), CMasternodePayments::RequestLowDataPaymentBlocks(), CMasternodeSync::SendGovernanceSyncRequest(), SendMessages(), CMasternodeMan::SendVerifyReply(), CMasternodeMan::SendVerifyRequest(), CPrivateSendClient::SignFinalTransaction(), CPrivateSendClient::StartNewQueue(), CMasternodePayments::Sync(), CGovernanceManager::Sync(), and ThreadMnbRequestConnections().
|
private |
|
inline |
|
inline |
Definition at line 193 of file net.h.
Referenced by ProcessMessage(), ProcessMessages(), and CMasternodeSync::ProcessTick().
|
inline |
Definition at line 178 of file net.h.
Referenced by PushMessage(), PushMessageWithFlag(), and PushMessageWithVersion().
|
private |
Definition at line 2535 of file net.cpp.
Referenced by ThreadSocketHandler().
|
private |
Definition at line 2541 of file net.cpp.
Referenced by PushMessage(), and ThreadSocketHandler().
void CConnman::RelayInv | ( | CInv & | inv, |
const int | minProtoVersion = MIN_PEER_PROTO_VERSION |
||
) |
Definition at line 2528 of file net.cpp.
Referenced by CPrivateSendServer::CommitFinalTransaction(), CMasternodePing::Relay(), CSporkMessage::Relay(), CGovernanceVote::Relay(), CMasternodePaymentVote::Relay(), CTxLockVote::Relay(), CGovernanceObject::Relay(), and CMasternodeBroadcast::Relay().
void CConnman::RelayTransaction | ( | const CTransaction & | tx | ) |
Definition at line 2477 of file net.cpp.
Referenced by CPrivateSendServer::ChargeFees(), CPrivateSendServer::ChargeRandomFees(), ProcessMessage(), CTxLockCandidate::Relay(), and CWalletTx::RelayWalletTransaction().
void CConnman::RelayTransaction | ( | const CTransaction & | tx, |
const CDataStream & | ss | ||
) |
void CConnman::ReleaseNodeVector | ( | const std::vector< CNode *> & | vecNodes | ) |
Definition at line 2908 of file net.cpp.
Referenced by CMasternodeSync::ProcessTick(), CDarksendQueue::Relay(), CGovernanceManager::RequestOrphanObjects(), ThreadMessageHandler(), and ThreadSocketHandler().
void CConnman::SetBanned | ( | const banmap_t & | banmap | ) |
|
private |
set the "dirty" flag for the banlist
Definition at line 612 of file net.cpp.
Referenced by DumpBanlist(), and Start().
void CConnman::SetBestHeight | ( | int | height | ) |
Definition at line 2652 of file net.cpp.
Referenced by Start(), and PeerLogicValidation::UpdatedBlockTip().
void CConnman::SetMaxOutboundTarget | ( | uint64_t | limit | ) |
void CConnman::SetMaxOutboundTimeframe | ( | uint64_t | timeframe | ) |
void CConnman::SetServices | ( | const CService & | addr, |
ServiceFlags | nServices | ||
) |
Definition at line 2380 of file net.cpp.
Referenced by ProcessMessage().
|
private |
Definition at line 811 of file net.cpp.
Referenced by PushMessage(), and ThreadSocketHandler().
bool CConnman::Start | ( | CScheduler & | scheduler, |
std::string & | strNodeError, | ||
Options | options | ||
) |
void CConnman::Stop | ( | ) |
Definition at line 2306 of file net.cpp.
Referenced by ~CConnman().
|
private |
clean unused entries (if bantime has expired)
Definition at line 585 of file net.cpp.
Referenced by DumpBanlist(), and Start().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 1387 of file net.cpp.
Referenced by ThreadSocketHandler().
|
private |
Definition at line 469 of file net.h.
Referenced by AddNewAddress(), AddNewAddresses(), ConnectNode(), DeleteNode(), DumpAddresses(), GetAddressCount(), GetAddresses(), MarkAddressGood(), SetServices(), Start(), ThreadDNSAddressSeed(), and ThreadOpenConnections().
|
static |
Definition at line 160 of file net.h.
Referenced by CMasternodeSync::ClearFulfilledRequests(), CPrivateSendClient::JoinExistingQueue(), CActiveMasternode::ManageStateInitial(), CMasternodeMan::ProcessMasternodeConnections(), CPrivateSendClient::StartNewQueue(), and CMasternodeSync::SwitchToNextAsset().
|
private |
Definition at line 491 of file net.h.
Referenced by Ban(), CConnman(), ClearBanned(), Start(), ThreadSocketHandler(), and Unban().
|
private |
Definition at line 496 of file net.h.
Referenced by Interrupt(), ThreadMessageHandler(), and WakeMessageHandler().
|
private |
Definition at line 466 of file net.h.
Referenced by Ban(), BannedSetIsDirty(), ClearBanned(), GetBanned(), IsBanned(), SetBanned(), SetBannedSetDirty(), SweepBanned(), and Unban().
|
private |
Definition at line 444 of file net.h.
Referenced by GetTotalBytesRecv(), and RecordBytesRecv().
|
private |
Definition at line 445 of file net.h.
Referenced by GetMaxOutboundTarget(), GetMaxOutboundTimeframe(), GetMaxOutboundTimeLeftInCycle(), GetOutboundTargetBytesLeft(), GetTotalBytesSent(), OutboundTargetReached(), RecordBytesSent(), SetMaxOutboundTarget(), and SetMaxOutboundTimeframe().
|
private |
Definition at line 473 of file net.h.
Referenced by AddNode(), GetAddedNodeInfo(), RemoveAddedNode(), and ThreadOpenAddedConnections().
|
mutableprivate |
Definition at line 476 of file net.h.
Referenced by AcceptConnection(), AttemptToEvictConnection(), Ban(), CheckIncomingNonce(), ConnectNode(), CopyNodeVector(), DisconnectNode(), FindNode(), ForEachNode(), ForEachNodeContinueIf(), ForEachNodeThen(), ForNode(), GetAddedNodeInfo(), GetNodeCount(), GetNodeStats(), RelayInv(), RelayTransaction(), ReleaseNodeVector(), SetNetworkActive(), ThreadDNSAddressSeed(), ThreadMnbRequestConnections(), ThreadOpenConnections(), and ThreadSocketHandler().
|
private |
Definition at line 471 of file net.h.
Referenced by AddOneShot(), and ProcessOneShot().
|
private |
Definition at line 458 of file net.h.
Referenced by AddWhitelistedRange(), and IsWhitelistedRange().
|
private |
Definition at line 468 of file net.h.
Referenced by CConnman(), Start(), and Stop().
|
private |
Definition at line 498 of file net.h.
Referenced by CConnman(), Interrupt(), Start(), and ThreadMessageHandler().
|
private |
flag for waking the message processor.
Definition at line 494 of file net.h.
Referenced by Start(), ThreadMessageHandler(), and WakeMessageHandler().
|
private |
Definition at line 464 of file net.h.
Referenced by AcceptConnection(), CConnman(), ConnectNode(), GetNetworkActive(), OpenNetworkConnection(), and SetNetworkActive().
|
static |
Definition at line 154 of file net.h.
Referenced by ForEachNode(), ForEachNodeContinueIf(), ForEachNodeThen(), and ForNode().
|
private |
Definition at line 500 of file net.h.
Referenced by Interrupt(), OpenNetworkConnection(), Start(), ThreadDNSAddressSeed(), ThreadMnbRequestConnections(), ThreadOpenAddedConnections(), ThreadOpenConnections(), and ThreadSocketHandler().
|
private |
Definition at line 497 of file net.h.
Referenced by Interrupt(), Start(), ThreadMessageHandler(), and WakeMessageHandler().
|
private |
Definition at line 490 of file net.h.
Referenced by CConnman(), GetBestHeight(), and SetBestHeight().
|
private |
Definition at line 477 of file net.h.
Referenced by CConnman(), and GetNewNodeId().
|
private |
Services this instance offers
Definition at line 480 of file net.h.
Referenced by AcceptConnection(), ConnectNode(), GetLocalServices(), and Start().
|
private |
Definition at line 487 of file net.h.
Referenced by AcceptConnection(), CConnman(), and Start().
|
private |
Definition at line 489 of file net.h.
Referenced by AcceptConnection(), Interrupt(), and Start().
|
private |
Definition at line 488 of file net.h.
Referenced by AcceptConnection(), CConnman(), Interrupt(), Start(), and ThreadOpenConnections().
|
private |
Definition at line 451 of file net.h.
Referenced by GetMaxOutboundTimeLeftInCycle(), RecordBytesSent(), SetMaxOutboundTimeframe(), and Start().
|
private |
Definition at line 452 of file net.h.
Referenced by GetMaxOutboundTarget(), GetMaxOutboundTimeLeftInCycle(), GetOutboundTargetBytesLeft(), OutboundTargetReached(), SetMaxOutboundTarget(), and Start().
|
private |
Definition at line 453 of file net.h.
Referenced by GetMaxOutboundTimeframe(), GetMaxOutboundTimeLeftInCycle(), RecordBytesSent(), SetMaxOutboundTarget(), SetMaxOutboundTimeframe(), and Start().
|
private |
Definition at line 450 of file net.h.
Referenced by GetOutboundTargetBytesLeft(), OutboundTargetReached(), RecordBytesSent(), and Start().
|
private |
Definition at line 461 of file net.h.
Referenced by CConnman(), GetReceiveFloodSize(), Start(), and ThreadSocketHandler().
|
private |
Services this instance cares about
Definition at line 483 of file net.h.
Referenced by ConnectNode(), and Start().
|
private |
Definition at line 460 of file net.h.
Referenced by CConnman(), GetSendBufferSize(), PushMessage(), SocketSendData(), and Start().
|
private |
Definition at line 446 of file net.h.
Referenced by GetTotalBytesRecv(), RecordBytesRecv(), and Start().
|
private |
Definition at line 447 of file net.h.
Referenced by GetTotalBytesSent(), RecordBytesSent(), and Start().
|
private |
Definition at line 486 of file net.h.
Referenced by CConnman(), Start(), Stop(), and ThreadMnbRequestConnections().
|
private |
Definition at line 485 of file net.h.
Referenced by CConnman(), Interrupt(), ProcessOneShot(), Start(), Stop(), ThreadOpenAddedConnections(), and ThreadOpenConnections().
|
private |
Definition at line 465 of file net.h.
Referenced by Ban(), ClearBanned(), GetBanned(), IsBanned(), SetBanned(), SweepBanned(), and Unban().
|
private |
Definition at line 467 of file net.h.
Referenced by Ban(), BannedSetIsDirty(), CConnman(), ClearBanned(), SetBanned(), SetBannedSetDirty(), SweepBanned(), and Unban().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 472 of file net.h.
Referenced by AddNode(), GetAddedNodeInfo(), RemoveAddedNode(), and ThreadOpenAddedConnections().
|
private |
Definition at line 463 of file net.h.
Referenced by BindListenPort(), Stop(), and ThreadSocketHandler().
|
private |
Definition at line 474 of file net.h.
Referenced by AcceptConnection(), AttemptToEvictConnection(), Ban(), CheckIncomingNonce(), ConnectNode(), CopyNodeVector(), DisconnectNode(), FindNode(), ForEachNode(), ForEachNodeContinueIf(), ForEachNodeThen(), ForNode(), GetAddedNodeInfo(), GetNodeCount(), GetNodeStats(), RelayInv(), RelayTransaction(), SetNetworkActive(), Stop(), ThreadDNSAddressSeed(), ThreadOpenConnections(), and ThreadSocketHandler().
|
private |
Definition at line 475 of file net.h.
Referenced by Stop(), and ThreadSocketHandler().
|
private |
Definition at line 470 of file net.h.
Referenced by AddOneShot(), and ProcessOneShot().
|
private |
Definition at line 457 of file net.h.
Referenced by AddWhitelistedRange(), and IsWhitelistedRange().