NatTraversalRules::StunClient Class Reference

List of all members.


Detailed Description

Class that gets used by NatTraversalRules class to resolve the public IP address through STUN whenever the nattraversalrules.xml config file calls for it.

Public Member Functions

 StunClient (const UtlString &stunServer)
virtual ~StunClient ()
bool getPublicIpAddress (UtlString &discoveredPublicIpAddress)
void maintainPublicIpAddressCurrent (NatTraversalRules *pNatTraversalRulesToKeepCurrent, int refreshIntervalInSecs, const UtlString &publicIpAddressHint)
virtual void requestShutdown (void)

Protected Member Functions

virtual int run (void *runArg)

Private Attributes

OsMutex mTimerMutex
OsStunQueryAgent stunQueryAgent
OsStunDatagramSocket mSocket
NatTraversalRulesmpNatTraversalRules
NatTraversalRulesmpNatTraversalRulesToKeepCurrent
UtlString mPublicIpAddressObtainedFromLastPoll
UtlString mStunServerName
bool mbStunServerIsValid

Constructor & Destructor Documentation

StunClient ( const UtlString stunServer  ) 

~StunClient (  )  [virtual]


Member Function Documentation

bool getPublicIpAddress ( UtlString discoveredPublicIpAddress  ) 

void maintainPublicIpAddressCurrent ( NatTraversalRules pNatTraversalRulesToKeepCurrent,
int  refreshIntervalInSecs,
const UtlString publicIpAddressHint 
)

void requestShutdown ( void   )  [virtual]

int run ( void *  runArg  )  [protected, virtual]


Member Data Documentation

OsMutex mTimerMutex [private]

bool mbStunServerIsValid [private]


Online Library Docs

sipXecs home page

Version 4.2.1-018930 2010-07-31T01:50:17 build33 abuild