|
Stun Server
Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
|
#include <tcpserver.h>


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 |
Definition at line 123 of file tcpserver.h.
| CTCPServer::CTCPServer | ( | ) |
Definition at line 791 of file tcpserver.cpp.
|
virtual |
Definition at line 799 of file tcpserver.cpp.
| CTCPServer::ADDREF_AND_RELEASE_IMPL | ( | ) |
| HRESULT CTCPServer::Initialize | ( | const CStunServerConfig & | config | ) |
Definition at line 830 of file tcpserver.cpp.
|
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.
|
private |
Definition at line 132 of file tcpserver.h.
|
private |
Definition at line 130 of file tcpserver.h.