diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-09-04 15:35:43 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-09-04 15:35:43 -0700 |
commit | 85b90f122a826510491e15a1bfd6c1fe75dfe069 (patch) | |
tree | d8ba4bb1793818f6f44d3fa1a2ecf3065b5a3869 /node/Switch.hpp | |
parent | 3dba016a9354d9c50743877988c8d928d25f7a2b (diff) | |
download | infinitytier-85b90f122a826510491e15a1bfd6c1fe75dfe069.tar.gz infinitytier-85b90f122a826510491e15a1bfd6c1fe75dfe069.zip |
Final std::map<> from Switch, and add some smallish default values for hash size.
Diffstat (limited to 'node/Switch.hpp')
-rw-r--r-- | node/Switch.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/node/Switch.hpp b/node/Switch.hpp index 2d83b70c..55e2c362 100644 --- a/node/Switch.hpp +++ b/node/Switch.hpp @@ -190,11 +190,12 @@ private: // Outsanding WHOIS requests and how many retries they've undergone struct WhoisRequest { + WhoisRequest() : lastSent(0),retries(0) {} uint64_t lastSent; Address peersConsulted[ZT_MAX_WHOIS_RETRIES]; // by retry unsigned int retries; // 0..ZT_MAX_WHOIS_RETRIES }; - std::map< Address,WhoisRequest > _outstandingWhoisRequests; + Hashtable< Address,WhoisRequest > _outstandingWhoisRequests; Mutex _outstandingWhoisRequests_m; // Packet defragmentation queue -- comes before RX queue in path |