Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
struct AddedNodeInfo { | struct AddedNodeInfo { | ||||
std::string strAddedNode; | std::string strAddedNode; | ||||
CService resolvedAddress; | CService resolvedAddress; | ||||
bool fConnected; | bool fConnected; | ||||
bool fInbound; | bool fInbound; | ||||
}; | }; | ||||
class CNodeStats; | struct CNodeStats; | ||||
class CClientUIInterface; | class CClientUIInterface; | ||||
struct CSerializedNetMsg { | struct CSerializedNetMsg { | ||||
CSerializedNetMsg() = default; | CSerializedNetMsg() = default; | ||||
CSerializedNetMsg(CSerializedNetMsg &&) = default; | CSerializedNetMsg(CSerializedNetMsg &&) = default; | ||||
CSerializedNetMsg &operator=(CSerializedNetMsg &&) = default; | CSerializedNetMsg &operator=(CSerializedNetMsg &&) = default; | ||||
// No copying, only moves. | // No copying, only moves. | ||||
CSerializedNetMsg(const CSerializedNetMsg &msg) = delete; | CSerializedNetMsg(const CSerializedNetMsg &msg) = delete; | ||||
▲ Show 20 Lines • Show All 409 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
extern CCriticalSection cs_mapLocalHost; | extern CCriticalSection cs_mapLocalHost; | ||||
extern std::map<CNetAddr, LocalServiceInfo> mapLocalHost; | extern std::map<CNetAddr, LocalServiceInfo> mapLocalHost; | ||||
// Command, total bytes | // Command, total bytes | ||||
typedef std::map<std::string, uint64_t> mapMsgCmdSize; | typedef std::map<std::string, uint64_t> mapMsgCmdSize; | ||||
class CNodeStats { | /** | ||||
public: | * POD that contains various stats about a node. | ||||
* Usually constructed from CConman::GetNodeStats. Stats are filled from the | |||||
* node using CNode::copyStats. | |||||
*/ | |||||
struct CNodeStats { | |||||
NodeId nodeid; | NodeId nodeid; | ||||
ServiceFlags nServices; | ServiceFlags nServices; | ||||
bool fRelayTxes; | bool fRelayTxes; | ||||
int64_t nLastSend; | int64_t nLastSend; | ||||
int64_t nLastRecv; | int64_t nLastRecv; | ||||
int64_t nTimeConnected; | int64_t nTimeConnected; | ||||
int64_t nTimeOffset; | int64_t nTimeOffset; | ||||
std::string addrName; | std::string addrName; | ||||
▲ Show 20 Lines • Show All 323 Lines • Show Last 20 Lines |