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

#include <tcpserver.h>

Inheritance diagram for CTCPServer:
Collaboration diagram for CTCPServer:

Public Member Functions

 CTCPServer ()
 
virtual ~CTCPServer ()
 
HRESULT Initialize (const CStunServerConfig &config)
 
HRESULT Shutdown ()
 
HRESULT Start ()
 
HRESULT Stop ()
 
 ADDREF_AND_RELEASE_IMPL ()
 
- Public Member Functions inherited from CBasicRefCount
 CBasicRefCount ()
 
virtual ~CBasicRefCount ()
 
int InternalAddRef ()
 
int InternalRelease ()
 
virtual void OnFinalRelease ()
 
- Public Member Functions inherited from IRefCounted
virtual int AddRef ()=0
 
virtual int Release ()=0
 

Private Member Functions

void InitTSA (TransportAddressSet *pTSA, SocketRole role, bool fValid, const CSocketAddress &addrListen, const CSocketAddress &addrAdvertise)
 

Private Attributes

CTCPStunThread_threads [4]
 
CRefCountedPtr< IStunAuth_spAuth
 

Additional Inherited Members

- Static Public Member Functions inherited from CObjectFactory< CTCPServer >
static HRESULT CreateInstanceNoInit (X **ppInstance)
 
static HRESULT CreateInstance (I **ppI)
 
static HRESULT CreateInstance (A paramA, I **ppI)
 
static HRESULT CreateInstance (A paramA, B paramB, I **ppI)
 
- Protected Attributes inherited from CBasicRefCount
int m_nRefs
 

Detailed Description

Definition at line 123 of file tcpserver.h.

Constructor & Destructor Documentation

CTCPServer::CTCPServer ( )

Definition at line 791 of file tcpserver.cpp.

CTCPServer::~CTCPServer ( )
virtual

Definition at line 799 of file tcpserver.cpp.

Member Function Documentation

CTCPServer::ADDREF_AND_RELEASE_IMPL ( )
HRESULT CTCPServer::Initialize ( const CStunServerConfig config)

Definition at line 830 of file tcpserver.cpp.

void CTCPServer::InitTSA ( TransportAddressSet pTSA,
SocketRole  role,
bool  fValid,
const CSocketAddress addrListen,
const CSocketAddress addrAdvertise 
)
private

Definition at line 806 of file tcpserver.cpp.

HRESULT CTCPServer::Shutdown ( )

Definition at line 902 of file tcpserver.cpp.

HRESULT CTCPServer::Start ( )

Definition at line 916 of file tcpserver.cpp.

HRESULT CTCPServer::Stop ( )

Definition at line 931 of file tcpserver.cpp.

Member Data Documentation

CRefCountedPtr<IStunAuth> CTCPServer::_spAuth
private

Definition at line 132 of file tcpserver.h.

CTCPStunThread* CTCPServer::_threads[4]
private

Definition at line 130 of file tcpserver.h.


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