Changeset View
Changeset View
Standalone View
Standalone View
src/net.cpp
Show First 20 Lines • Show All 2,340 Lines • ▼ Show 20 Lines | void CConnman::SetNetworkActive(bool active) { | ||||
} | } | ||||
fNetworkActive = active; | fNetworkActive = active; | ||||
uiInterface.NotifyNetworkActiveChanged(fNetworkActive); | uiInterface.NotifyNetworkActiveChanged(fNetworkActive); | ||||
} | } | ||||
CConnman::CConnman(const Config &configIn, uint64_t nSeed0In, uint64_t nSeed1In) | CConnman::CConnman(const Config &configIn, uint64_t nSeed0In, uint64_t nSeed1In) | ||||
: config(&configIn), nSeed0(nSeed0In), nSeed1(nSeed1In) { | : config(&configIn), nSeed0(nSeed0In), nSeed1(nSeed1In) { | ||||
fNetworkActive = true; | |||||
setBannedIsDirty = false; | |||||
fAddressesInitialized = false; | |||||
nLastNodeId = 0; | |||||
nPrevNodeCount = 0; | |||||
nSendBufferMaxSize = 0; | |||||
nReceiveFloodSize = 0; | |||||
flagInterruptMsgProc = false; | |||||
SetTryNewOutboundPeer(false); | SetTryNewOutboundPeer(false); | ||||
Options connOptions; | Options connOptions; | ||||
Init(connOptions); | Init(connOptions); | ||||
} | } | ||||
NodeId CConnman::GetNewNodeId() { | NodeId CConnman::GetNewNodeId() { | ||||
return nLastNodeId.fetch_add(1, std::memory_order_relaxed); | return nLastNodeId.fetch_add(1, std::memory_order_relaxed); | ||||
▲ Show 20 Lines • Show All 722 Lines • Show Last 20 Lines |