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

#include <stunclientlogic.h>

Collaboration diagram for CStunClientLogic:

Public Member Functions

 CStunClientLogic ()
 
HRESULT Initialize (StunClientLogicConfig &config)
 
HRESULT GetNextMessage (CRefCountedBuffer &spMsg, CSocketAddress *pAddrDest, uint32_t timeCurrentMilliseconds)
 
HRESULT ProcessResponse (CRefCountedBuffer &spMsg, CSocketAddress &addrRemote, CSocketAddress &addrLocal)
 
HRESULT GetResults (StunClientResults *pResults)
 

Private Attributes

StunClientLogicConfig _config
 
StunClientResults _results
 
bool _fInitialized
 
uint32_t _timeLastMessageSent
 
uint32_t _sendCount
 
bool _fPreCheckRunOnTest
 
CBasicBindingTest _test1
 
CBehaviorTest _testBehavior2
 
CBehaviorTest _testBehavior3
 
CFilteringTest _testFiltering2
 
CFilteringTest _testFiltering3
 
std::vector< IStunClientTest * > _testlist
 
size_t _nTestIndex
 

Detailed Description

Definition at line 102 of file stunclientlogic.h.

Constructor & Destructor Documentation

CStunClientLogic::CStunClientLogic ( )

Definition at line 58 of file stunclientlogic.cpp.

Member Function Documentation

HRESULT CStunClientLogic::GetNextMessage ( CRefCountedBuffer spMsg,
CSocketAddress pAddrDest,
uint32_t  timeCurrentMilliseconds 
)

Definition at line 139 of file stunclientlogic.cpp.

HRESULT CStunClientLogic::GetResults ( StunClientResults pResults)

Definition at line 241 of file stunclientlogic.cpp.

HRESULT CStunClientLogic::Initialize ( StunClientLogicConfig config)

Definition at line 68 of file stunclientlogic.cpp.

HRESULT CStunClientLogic::ProcessResponse ( CRefCountedBuffer spMsg,
CSocketAddress addrRemote,
CSocketAddress addrLocal 
)

Definition at line 219 of file stunclientlogic.cpp.

Member Data Documentation

StunClientLogicConfig CStunClientLogic::_config
private

Definition at line 106 of file stunclientlogic.h.

bool CStunClientLogic::_fInitialized
private

Definition at line 109 of file stunclientlogic.h.

bool CStunClientLogic::_fPreCheckRunOnTest
private

Definition at line 113 of file stunclientlogic.h.

size_t CStunClientLogic::_nTestIndex
private

Definition at line 122 of file stunclientlogic.h.

StunClientResults CStunClientLogic::_results
private

Definition at line 107 of file stunclientlogic.h.

uint32_t CStunClientLogic::_sendCount
private

Definition at line 112 of file stunclientlogic.h.

CBasicBindingTest CStunClientLogic::_test1
private

Definition at line 115 of file stunclientlogic.h.

CBehaviorTest CStunClientLogic::_testBehavior2
private

Definition at line 116 of file stunclientlogic.h.

CBehaviorTest CStunClientLogic::_testBehavior3
private

Definition at line 117 of file stunclientlogic.h.

CFilteringTest CStunClientLogic::_testFiltering2
private

Definition at line 118 of file stunclientlogic.h.

CFilteringTest CStunClientLogic::_testFiltering3
private

Definition at line 119 of file stunclientlogic.h.

std::vector<IStunClientTest*> CStunClientLogic::_testlist
private

Definition at line 121 of file stunclientlogic.h.

uint32_t CStunClientLogic::_timeLastMessageSent
private

Definition at line 111 of file stunclientlogic.h.


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