Final std::map<> from Switch, and add some smallish default values for hash size.
This commit is contained in:
parent
3dba016a93
commit
85b90f122a
2 changed files with 26 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue