Changeset View
Changeset View
Standalone View
Standalone View
src/net.cpp
Show First 20 Lines • Show All 2,824 Lines • ▼ Show 20 Lines | |||||
int CConnman::GetBestHeight() const { | int CConnman::GetBestHeight() const { | ||||
return nBestHeight.load(std::memory_order_acquire); | return nBestHeight.load(std::memory_order_acquire); | ||||
} | } | ||||
unsigned int CConnman::GetReceiveFloodSize() const { | unsigned int CConnman::GetReceiveFloodSize() const { | ||||
return nReceiveFloodSize; | return nReceiveFloodSize; | ||||
} | } | ||||
unsigned int CConnman::GetSendBufferSize() const { | |||||
return nSendBufferMaxSize; | |||||
} | |||||
CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, | CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, | ||||
int nMyStartingHeightIn, SOCKET hSocketIn, const CAddress &addrIn, | int nMyStartingHeightIn, SOCKET hSocketIn, const CAddress &addrIn, | ||||
uint64_t nKeyedNetGroupIn, uint64_t nLocalHostNonceIn, | uint64_t nKeyedNetGroupIn, uint64_t nLocalHostNonceIn, | ||||
const CAddress &addrBindIn, const std::string &addrNameIn, | const CAddress &addrBindIn, const std::string &addrNameIn, | ||||
bool fInboundIn) | bool fInboundIn) | ||||
: nTimeConnected(GetSystemTimeInSeconds()), addr(addrIn), | : nTimeConnected(GetSystemTimeInSeconds()), addr(addrIn), | ||||
addrBind(addrBindIn), fInbound(fInboundIn), | addrBind(addrBindIn), fInbound(fInboundIn), | ||||
▲ Show 20 Lines • Show All 247 Lines • Show Last 20 Lines |