diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-02-06 14:31:37 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-02-06 14:34:53 +0100 |
| commit | 09e0c28f8566d9614084e5f52739f6241d80685a (patch) | |
| tree | f4a3b7a961db349d0b34fa57a6876cd3914027a0 /src/net.h | |
| parent | Merge #9651: Fix typos (diff) | |
| parent | Net: pass interruptMsgProc as const where possible (diff) | |
| download | discoin-09e0c28f8566d9614084e5f52739f6241d80685a.tar.xz discoin-09e0c28f8566d9614084e5f52739f6241d80685a.zip | |
Merge #9659: Net: Turn some methods and params/variables const
0729102 Net: pass interruptMsgProc as const where possible (Jorge Timón)
fc7f2ff Net: Make CNetMsgMaker more const (Jorge Timón)
d45955f Net: CConnman: Make some methods const (Jorge Timón)
Diffstat (limited to 'src/net.h')
| -rw-r--r-- | src/net.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -281,7 +281,7 @@ public: int GetBestHeight() const; /** Get a unique deterministic randomizer. */ - CSipHasher GetDeterministicRandomizer(uint64_t id); + CSipHasher GetDeterministicRandomizer(uint64_t id) const; unsigned int GetReceiveFloodSize() const; @@ -302,7 +302,7 @@ private: void ThreadSocketHandler(); void ThreadDNSAddressSeed(); - uint64_t CalculateKeyedNetGroup(const CAddress& ad); + uint64_t CalculateKeyedNetGroup(const CAddress& ad) const; CNode* FindNode(const CNetAddr& ip); CNode* FindNode(const CSubNet& subNet); @@ -317,7 +317,7 @@ private: NodeId GetNewNodeId(); - size_t SocketSendData(CNode *pnode); + size_t SocketSendData(CNode *pnode) const; //!check is the banlist has unwritten changes bool BannedSetIsDirty(); //!set the "dirty" flag for the banlist |