Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 637 Lines • ▼ Show 20 Lines | struct CNodeStats { | ||||
int64_t m_min_ping_usec; | int64_t m_min_ping_usec; | ||||
Amount minFeeFilter; | Amount minFeeFilter; | ||||
// Our address, as reported by the peer | // Our address, as reported by the peer | ||||
std::string addrLocal; | std::string addrLocal; | ||||
// Address of this peer | // Address of this peer | ||||
CAddress addr; | CAddress addr; | ||||
// Bind address of our side of the connection | // Bind address of our side of the connection | ||||
CAddress addrBind; | CAddress addrBind; | ||||
uint32_t m_mapped_as; | |||||
}; | }; | ||||
class CNetMessage { | class CNetMessage { | ||||
private: | private: | ||||
mutable CHash256 hasher; | mutable CHash256 hasher; | ||||
mutable uint256 data_hash; | mutable uint256 data_hash; | ||||
public: | public: | ||||
▲ Show 20 Lines • Show All 311 Lines • ▼ Show 20 Lines | public: | ||||
void PushBlockHash(const BlockHash &hash) { | void PushBlockHash(const BlockHash &hash) { | ||||
LOCK(cs_inventory); | LOCK(cs_inventory); | ||||
vBlockHashesToAnnounce.push_back(hash); | vBlockHashesToAnnounce.push_back(hash); | ||||
} | } | ||||
void CloseSocketDisconnect(); | void CloseSocketDisconnect(); | ||||
void copyStats(CNodeStats &stats); | void copyStats(CNodeStats &stats, std::vector<bool> &m_asmap); | ||||
ServiceFlags GetLocalServices() const { return nLocalServices; } | ServiceFlags GetLocalServices() const { return nLocalServices; } | ||||
std::string GetAddrName() const; | std::string GetAddrName() const; | ||||
//! Sets the addrName only if it was not previously set | //! Sets the addrName only if it was not previously set | ||||
void MaybeSetAddrName(const std::string &addrNameIn); | void MaybeSetAddrName(const std::string &addrNameIn); | ||||
}; | }; | ||||
Show All 9 Lines |