17 uint64_t addrbytes[2];
28 if (
sizeof(
size_t) >= 8)
34 uint32_t* pTmp = (uint32_t*)(addr.
addrbytes);
35 result = pTmp[0] ^ pTmp[1] ^ pTmp[2] ^ pTmp[3];
45 virtual time_t get_time();
58 static const uint64_t MAX_RATE = 3600;
59 static const uint64_t MIN_COUNT_FOR_CONSIDERATION = 60;
60 static const time_t RESET_INTERVAL_SECONDS = 120;
61 static const time_t PENALTY_TIME_SECONDS = 3600;
FastHashDynamic< RateTrackerAddress, RateTracker > _table
size_t FastHash_Hash(const RateTrackerAddress &addr)
bool operator==(const RateTrackerAddress &other)