51 for (
int x = 0; x < 59; x++)
59 result = ratelimiter.
RateCheck(sockaddr_goodguy);
70 result = ratelimiter.
RateCheck(sockaddr_goodguy);
97 for (
int x = 0; x < 20000; x++)
106 for (
int x = 0; x < 60; x++)
110 result = ratelimiter.
RateCheck(badguy_addr);
114 result = ratelimiter.
RateCheck(goodguy_addr);
118 result = ratelimiter.
RateCheck(badguy_addr);
#define ChkIf(expr, hrerror)
virtual time_t get_time()
static const time_t PENALTY_TIME_SECONDS
RateLimiterMockTime(size_t tablesize)
bool RateCheck(const CSocketAddress &addr)