32 fMultiThreadedMode(false),
35 fEnableDosProtection(false)
83 pTSA->
set[role].
addr = addrAdvertise;
88 pTSA->
set[role].
addr = addrListen;
101 boost::shared_ptr<RateLimiter> spLimiter;
202 for (
size_t index = 0; index < len; index++)
224 for (
size_t index = 0; index < len; index++)
249 for (
size_t index = 0; index < len; index++)
260 for (
size_t index = 0; index < len; index++)
272 for (
size_t index = 0; index < len; index++)
bool IsValidSocketRole(SocketRole sr)
HRESULT AddSocket(TransportAddressSet *pTSA, SocketRole role, const CSocketAddress &addrListen, const CSocketAddress &addrAdvertise)
bool IsSameIP_and_Port(const CSocketAddress &other) const
HRESULT WaitForStopAndClose()
void LogMsg(uint32_t level, const char *pszFormat,...)
HRESULT Init(CStunSocket *arrayOfFourSockets, TransportAddressSet *pTSA, IStunAuth *pAuth, SocketRole rolePrimaryRecv, boost::shared_ptr< RateLimiter > &_spRateLimiter)
CSocketAddress addrAlternateAdvertised
#define ChkIf(expr, hrerror)
std::vector< CStunSocketThread * > _threads
CStunSocket _arrSockets[4]
CRefCountedPtr< IStunAuth > _spAuth
SocketRole GetRole() const
CSocketAddress addrPrimaryAdvertised
bool fEnableDosProtection
bool IsIPAddressZero() const
HRESULT SignalForStop(bool fPostMessages)
#define ChkIfA(expr, hrerror)
const CSocketAddress & GetLocalAddress() const
HRESULT Initialize(const CStunServerConfig &config)