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

#include <testpolling.h>

Inheritance diagram for CTestPolling:
Collaboration diagram for CTestPolling:

Public Member Functions

void TestUnInit ()
 
HRESULT TestInit (size_t sizePolling, size_t sizePipeArray)
 
HRESULT CreateAndAddPipe ()
 
HRESULT WritePipe (PipePair *pPipePair)
 
HRESULT SetNonBlocking (int fd)
 
HRESULT ConsumeEvent (int *pFD, int *pCount)
 
int FindPipePairIndex (int fd)
 
size_t GetPendingCount ()
 
HRESULT RemovePipe (int pipeindex)
 
HRESULT Test1 ()
 
HRESULT Test2 ()
 
HRESULT Test3 ()
 
HRESULT Run ()
 
 CTestPolling ()
 
 ~CTestPolling ()
 
 UT_DECLARE_TEST_NAME ("CTestPolling")
 
- Public Member Functions inherited from IUnitTest
virtual ~IUnitTest ()
 
virtual const char * GetName ()=0
 

Public Attributes

CRefCountedPtr< IPolling_spPolling
 
std::vector< PipePair_pipes
 
uint32_t _polltype
 

Detailed Description

Definition at line 28 of file testpolling.h.

Constructor & Destructor Documentation

CTestPolling::CTestPolling ( )

Definition at line 24 of file testpolling.cpp.

CTestPolling::~CTestPolling ( )

Definition at line 29 of file testpolling.cpp.

Member Function Documentation

HRESULT CTestPolling::ConsumeEvent ( int *  pFD,
int *  pCount 
)

Definition at line 145 of file testpolling.cpp.

HRESULT CTestPolling::CreateAndAddPipe ( )

Definition at line 88 of file testpolling.cpp.

int CTestPolling::FindPipePairIndex ( int  fd)

Definition at line 193 of file testpolling.cpp.

size_t CTestPolling::GetPendingCount ( )

Definition at line 208 of file testpolling.cpp.

HRESULT CTestPolling::RemovePipe ( int  pipeindex)

Definition at line 224 of file testpolling.cpp.

HRESULT CTestPolling::Run ( )
virtual

Implements IUnitTest.

Definition at line 34 of file testpolling.cpp.

HRESULT CTestPolling::SetNonBlocking ( int  fd)

Definition at line 67 of file testpolling.cpp.

HRESULT CTestPolling::Test1 ( )

Definition at line 251 of file testpolling.cpp.

HRESULT CTestPolling::Test2 ( )

Definition at line 293 of file testpolling.cpp.

HRESULT CTestPolling::Test3 ( )

Definition at line 377 of file testpolling.cpp.

HRESULT CTestPolling::TestInit ( size_t  sizePolling,
size_t  sizePipeArray 
)

Definition at line 113 of file testpolling.cpp.

void CTestPolling::TestUnInit ( )

Definition at line 52 of file testpolling.cpp.

CTestPolling::UT_DECLARE_TEST_NAME ( "CTestPolling"  )
HRESULT CTestPolling::WritePipe ( PipePair pPipePair)

Definition at line 130 of file testpolling.cpp.

Member Data Documentation

std::vector<PipePair> CTestPolling::_pipes

Definition at line 33 of file testpolling.h.

uint32_t CTestPolling::_polltype

Definition at line 35 of file testpolling.h.

CRefCountedPtr<IPolling> CTestPolling::_spPolling

Definition at line 32 of file testpolling.h.


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