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

#include <testclientlogic.h>

Inheritance diagram for CTestClientLogic:
Collaboration diagram for CTestClientLogic:

Public Member Functions

 CTestClientLogic ()
 
 ~CTestClientLogic ()
 
HRESULT Run ()
 
 UT_DECLARE_TEST_NAME ("CTestClientLogic")
 
- Public Member Functions inherited from IUnitTest
virtual ~IUnitTest ()
 
virtual const char * GetName ()=0
 

Private Member Functions

HRESULT ValidateBindingRequest (CRefCountedBuffer &spMsg, StunTransactionId *pTransId)
 
HRESULT GenerateBindingResponseMessage (const CSocketAddress &addrMapped, const StunTransactionId &transid, CRefCountedBuffer &spMsg)
 
HRESULT Test1 ()
 
HRESULT TestBehaviorAndFiltering (bool fBehaviorTest, NatBehavior behavior, bool fFilteringTest, NatFiltering filtering)
 
HRESULT CommonInit (NatBehavior behavior, NatFiltering filtering)
 
HRESULT GetMappedAddressForDestinationAddress (const CSocketAddress &addrDest, CSocketAddress *pAddrMapped)
 
SocketRole GetSocketRoleForDestinationAddress (const CSocketAddress &addrDest)
 

Private Attributes

CSocketAddress _addrServerPP
 
CSocketAddress _addrServerPA
 
CSocketAddress _addrServerAP
 
CSocketAddress _addrServerAA
 
CSocketAddress _addrLocal
 
CSocketAddress _addrMappedPP
 
CSocketAddress _addrMappedPA
 
CSocketAddress _addrMappedAP
 
CSocketAddress _addrMappedAA
 
bool _fAllowChangeRequestAA
 
bool _fAllowChangeRequestPA
 
TransportAddressSet _tsa
 
boost::shared_ptr< CStunClientLogic_spClientLogic
 

Detailed Description

Definition at line 27 of file testclientlogic.h.

Constructor & Destructor Documentation

CTestClientLogic::CTestClientLogic ( )
inline

Definition at line 69 of file testclientlogic.h.

CTestClientLogic::~CTestClientLogic ( )
inline

Definition at line 70 of file testclientlogic.h.

Member Function Documentation

HRESULT CTestClientLogic::CommonInit ( NatBehavior  behavior,
NatFiltering  filtering 
)
private

Definition at line 147 of file testclientlogic.cpp.

HRESULT CTestClientLogic::GenerateBindingResponseMessage ( const CSocketAddress addrMapped,
const StunTransactionId transid,
CRefCountedBuffer spMsg 
)
private

Definition at line 80 of file testclientlogic.cpp.

HRESULT CTestClientLogic::GetMappedAddressForDestinationAddress ( const CSocketAddress addrDest,
CSocketAddress pAddrMapped 
)
private

Definition at line 95 of file testclientlogic.cpp.

SocketRole CTestClientLogic::GetSocketRoleForDestinationAddress ( const CSocketAddress addrDest)
private

Definition at line 123 of file testclientlogic.cpp.

HRESULT CTestClientLogic::Run ( )
virtual

Implements IUnitTest.

Definition at line 28 of file testclientlogic.cpp.

HRESULT CTestClientLogic::Test1 ( )
private

Definition at line 396 of file testclientlogic.cpp.

HRESULT CTestClientLogic::TestBehaviorAndFiltering ( bool  fBehaviorTest,
NatBehavior  behavior,
bool  fFilteringTest,
NatFiltering  filtering 
)
private

Definition at line 249 of file testclientlogic.cpp.

CTestClientLogic::UT_DECLARE_TEST_NAME ( "CTestClientLogic"  )
HRESULT CTestClientLogic::ValidateBindingRequest ( CRefCountedBuffer spMsg,
StunTransactionId pTransId 
)
private

Definition at line 61 of file testclientlogic.cpp.

Member Data Documentation

CSocketAddress CTestClientLogic::_addrLocal
private

Definition at line 36 of file testclientlogic.h.

CSocketAddress CTestClientLogic::_addrMappedAA
private

Definition at line 41 of file testclientlogic.h.

CSocketAddress CTestClientLogic::_addrMappedAP
private

Definition at line 40 of file testclientlogic.h.

CSocketAddress CTestClientLogic::_addrMappedPA
private

Definition at line 39 of file testclientlogic.h.

CSocketAddress CTestClientLogic::_addrMappedPP
private

Definition at line 38 of file testclientlogic.h.

CSocketAddress CTestClientLogic::_addrServerAA
private

Definition at line 34 of file testclientlogic.h.

CSocketAddress CTestClientLogic::_addrServerAP
private

Definition at line 33 of file testclientlogic.h.

CSocketAddress CTestClientLogic::_addrServerPA
private

Definition at line 32 of file testclientlogic.h.

CSocketAddress CTestClientLogic::_addrServerPP
private

Definition at line 31 of file testclientlogic.h.

bool CTestClientLogic::_fAllowChangeRequestAA
private

Definition at line 43 of file testclientlogic.h.

bool CTestClientLogic::_fAllowChangeRequestPA
private

Definition at line 44 of file testclientlogic.h.

boost::shared_ptr<CStunClientLogic> CTestClientLogic::_spClientLogic
private

Definition at line 49 of file testclientlogic.h.

TransportAddressSet CTestClientLogic::_tsa
private

Definition at line 46 of file testclientlogic.h.


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