Final std::map<> from Switch, and add some smallish default values for hash size.

This commit is contained in:
Adam Ierymenko 2015-09-04 15:35:43 -07:00
parent 3dba016a93
commit 85b90f122a
2 changed files with 26 additions and 18 deletions

View file

@ -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