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


Public Member Functions | |
| 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 | |
| CStunServer () | |
| ~CStunServer () | |
| HRESULT | AddSocket (TransportAddressSet *pTSA, SocketRole role, const CSocketAddress &addrListen, const CSocketAddress &addrAdvertise) |
Private Attributes | |
| CStunSocket | _arrSockets [4] |
| std::vector< CStunSocketThread * > | _threads |
| CRefCountedPtr< IStunAuth > | _spAuth |
Friends | |
| class | CObjectFactory< CStunServer > |
Additional Inherited Members | |
Static Public Member Functions inherited from CObjectFactory< CStunServer > | |
| 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 |
|
private |
Definition at line 42 of file server.cpp.
|
private |
Definition at line 48 of file server.cpp.
| CStunServer::ADDREF_AND_RELEASE_IMPL | ( | ) |
|
private |
Definition at line 53 of file server.cpp.
| HRESULT CStunServer::Initialize | ( | const CStunServerConfig & | config | ) |
Definition at line 95 of file server.cpp.
| HRESULT CStunServer::Shutdown | ( | ) |
Definition at line 188 of file server.cpp.
| HRESULT CStunServer::Start | ( | ) |
Definition at line 217 of file server.cpp.
| HRESULT CStunServer::Stop | ( | ) |
Definition at line 243 of file server.cpp.
|
friend |
|
private |
|
private |
|
private |