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

#include <stunconnection.h>

Collaboration diagram for CConnectionPool:

Public Member Functions

 CConnectionPool ()
 
 ~CConnectionPool ()
 
StunConnectionGetConnection (int sock, SocketRole role)
 
void ReleaseConnection (StunConnection *pConn)
 
void ResetConnection (StunConnection *pConn)
 
void Reset ()
 

Private Member Functions

HRESULT Grow ()
 

Private Attributes

StunConnection_freelist
 

Detailed Description

Definition at line 31 of file stunconnection.h.

Constructor & Destructor Documentation

CConnectionPool::CConnectionPool ( )

Definition at line 5 of file stunconnection.cpp.

CConnectionPool::~CConnectionPool ( )

Definition at line 11 of file stunconnection.cpp.

Member Function Documentation

StunConnection * CConnectionPool::GetConnection ( int  sock,
SocketRole  role 
)

Definition at line 57 of file stunconnection.cpp.

HRESULT CConnectionPool::Grow ( )
private

Definition at line 27 of file stunconnection.cpp.

void CConnectionPool::ReleaseConnection ( StunConnection pConn)

Definition at line 87 of file stunconnection.cpp.

void CConnectionPool::Reset ( )

Definition at line 16 of file stunconnection.cpp.

void CConnectionPool::ResetConnection ( StunConnection pConn)

Definition at line 95 of file stunconnection.cpp.

Member Data Documentation

StunConnection* CConnectionPool::_freelist
private

Definition at line 35 of file stunconnection.h.


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