|
Stun Server
Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
|


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 |
Definition at line 7 of file testratelimiter.cpp.
|
inline |
Definition at line 12 of file testratelimiter.cpp.
|
inlinevirtual |
Reimplemented from RateLimiter.
Definition at line 21 of file testratelimiter.cpp.
|
inline |
Definition at line 16 of file testratelimiter.cpp.
| time_t RateLimiterMockTime::_time |
Definition at line 10 of file testratelimiter.cpp.