DDraceNetwork Documentation
Loading...
Searching...
No Matches
CStun::CProtocol Class Reference
Collaboration diagram for CStun::CProtocol:
[legend]

Public Member Functions

 CProtocol (int Index, NETSOCKET Socket)
void FeedStunServer (NETADDR StunServer)
void Refresh ()
void Update ()
bool OnPacket (NETADDR Addr, unsigned char *pData, int DataSize)
CONNECTIVITY GetConnectivity (NETADDR *pGlobalAddr)

Private Attributes

int m_Index
NETSOCKET m_Socket
CStunData m_Stun
bool m_HaveStunServer = false
NETADDR m_StunServer
bool m_HaveAddr = false
NETADDR m_Addr
int64_t m_LastResponse = -1
int64_t m_NextTry = -1
int m_NumUnsuccessfulTries = -1

Constructor & Destructor Documentation

◆ CProtocol()

CStun::CProtocol::CProtocol ( int Index,
NETSOCKET Socket )

Member Function Documentation

◆ FeedStunServer()

void CStun::CProtocol::FeedStunServer ( NETADDR StunServer)

◆ GetConnectivity()

CONNECTIVITY CStun::CProtocol::GetConnectivity ( NETADDR * pGlobalAddr)

◆ OnPacket()

bool CStun::CProtocol::OnPacket ( NETADDR Addr,
unsigned char * pData,
int DataSize )

◆ Refresh()

void CStun::CProtocol::Refresh ( )

◆ Update()

void CStun::CProtocol::Update ( )

Member Data Documentation

◆ m_Addr

NETADDR CStun::CProtocol::m_Addr
private

◆ m_HaveAddr

bool CStun::CProtocol::m_HaveAddr = false
private

◆ m_HaveStunServer

bool CStun::CProtocol::m_HaveStunServer = false
private

◆ m_Index

int CStun::CProtocol::m_Index
private

◆ m_LastResponse

int64_t CStun::CProtocol::m_LastResponse = -1
private

◆ m_NextTry

int64_t CStun::CProtocol::m_NextTry = -1
private

◆ m_NumUnsuccessfulTries

int CStun::CProtocol::m_NumUnsuccessfulTries = -1
private

◆ m_Socket

NETSOCKET CStun::CProtocol::m_Socket
private

◆ m_Stun

CStunData CStun::CProtocol::m_Stun
private

◆ m_StunServer

NETADDR CStun::CProtocol::m_StunServer
private

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