Stun Server  Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
RateLimiterMockTime Class Reference
Inheritance diagram for RateLimiterMockTime:
Collaboration diagram for RateLimiterMockTime:

Public Member Functions

 RateLimiterMockTime (size_t tablesize)
 
void set_time (time_t t)
 
virtual time_t get_time ()
 
- Public Member Functions inherited from RateLimiter
bool RateCheck (const CSocketAddress &addr)
 
 RateLimiter (size_t tablesize, bool isUsingLock)
 
virtual ~RateLimiter ()
 

Public Attributes

time_t _time
 

Additional Inherited Members

- Static Public Attributes inherited from RateLimiter
static const uint64_t MAX_RATE = 3600
 
static const uint64_t MIN_COUNT_FOR_CONSIDERATION = 60
 
static const time_t RESET_INTERVAL_SECONDS = 120
 
static const time_t PENALTY_TIME_SECONDS = 3600
 
- Protected Member Functions inherited from RateLimiter
uint64_t get_rate (const RateTracker *pRT)
 
bool RateCheckImpl (const CSocketAddress &addr)
 
- Protected Attributes inherited from RateLimiter
FastHashDynamic< RateTrackerAddress, RateTracker_table
 
bool _isUsingLock
 
pthread_mutex_t _mutex
 

Detailed Description

Definition at line 7 of file testratelimiter.cpp.

Constructor & Destructor Documentation

RateLimiterMockTime::RateLimiterMockTime ( size_t  tablesize)
inline

Definition at line 12 of file testratelimiter.cpp.

Member Function Documentation

virtual time_t RateLimiterMockTime::get_time ( )
inlinevirtual

Reimplemented from RateLimiter.

Definition at line 21 of file testratelimiter.cpp.

void RateLimiterMockTime::set_time ( time_t  t)
inline

Definition at line 16 of file testratelimiter.cpp.

Member Data Documentation

time_t RateLimiterMockTime::_time

Definition at line 10 of file testratelimiter.cpp.


The documentation for this class was generated from the following file: