Stun Server
Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
|
#include <stunconnection.h>
Public Member Functions | |
CConnectionPool () | |
~CConnectionPool () | |
StunConnection * | GetConnection (int sock, SocketRole role) |
void | ReleaseConnection (StunConnection *pConn) |
void | ResetConnection (StunConnection *pConn) |
void | Reset () |
Private Member Functions | |
HRESULT | Grow () |
Private Attributes | |
StunConnection * | _freelist |
Definition at line 31 of file stunconnection.h.
CConnectionPool::CConnectionPool | ( | ) |
Definition at line 5 of file stunconnection.cpp.
CConnectionPool::~CConnectionPool | ( | ) |
Definition at line 11 of file stunconnection.cpp.
StunConnection * CConnectionPool::GetConnection | ( | int | sock, |
SocketRole | role | ||
) |
Definition at line 57 of file stunconnection.cpp.
|
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.
|
private |
Definition at line 35 of file stunconnection.h.