DDraceNetwork Docs
CNetClient Class Reference

#include <network.h>

Collaboration diagram for CNetClient:
[legend]

Public Member Functions

bool Open (NETADDR BindAddr)
 
int Close ()
 
int Disconnect (const char *pReason)
 
int Connect (const NETADDR *pAddr, int NumAddrs)
 
int Connect7 (const NETADDR *pAddr, int NumAddrs)
 
int Recv (CNetChunk *pChunk, SECURITY_TOKEN *pResponseToken, bool Sixup)
 
int Send (CNetChunk *pChunk)
 
int Update ()
 
int Flush ()
 
int ResetErrorString ()
 
int NetType () const
 
int State ()
 
const NETADDRServerAddress () const
 
void ConnectAddresses (const NETADDR **ppAddrs, int *pNumAddrs) const
 
int GotProblems (int64_t MaxLatency) const
 
const char * ErrorString () const
 
void FeedStunServer (NETADDR StunServer)
 
void RefreshStun ()
 
CONNECTIVITY GetConnectivity (int NetType, NETADDR *pGlobalAddr)
 

Public Attributes

NETSOCKET m_Socket
 

Private Attributes

CNetConnection m_Connection
 
CNetRecvUnpacker m_RecvUnpacker
 
CStunm_pStun = nullptr
 

Member Function Documentation

◆ Close()

int CNetClient::Close ( )

◆ Connect()

int CNetClient::Connect ( const NETADDR pAddr,
int  NumAddrs 
)

◆ Connect7()

int CNetClient::Connect7 ( const NETADDR pAddr,
int  NumAddrs 
)

◆ ConnectAddresses()

void CNetClient::ConnectAddresses ( const NETADDR **  ppAddrs,
int *  pNumAddrs 
) const
inline

◆ Disconnect()

int CNetClient::Disconnect ( const char *  pReason)

◆ ErrorString()

const char * CNetClient::ErrorString ( ) const

◆ FeedStunServer()

void CNetClient::FeedStunServer ( NETADDR  StunServer)

◆ Flush()

int CNetClient::Flush ( )

◆ GetConnectivity()

CONNECTIVITY CNetClient::GetConnectivity ( int  NetType,
NETADDR pGlobalAddr 
)

◆ GotProblems()

int CNetClient::GotProblems ( int64_t  MaxLatency) const

◆ NetType()

int CNetClient::NetType ( ) const
inline

◆ Open()

bool CNetClient::Open ( NETADDR  BindAddr)

◆ Recv()

int CNetClient::Recv ( CNetChunk pChunk,
SECURITY_TOKEN pResponseToken,
bool  Sixup 
)

◆ RefreshStun()

void CNetClient::RefreshStun ( )

◆ ResetErrorString()

int CNetClient::ResetErrorString ( )

◆ Send()

int CNetClient::Send ( CNetChunk pChunk)

◆ ServerAddress()

const NETADDR * CNetClient::ServerAddress ( ) const
inline

◆ State()

int CNetClient::State ( )

◆ Update()

int CNetClient::Update ( )

Member Data Documentation

◆ m_Connection

CNetConnection CNetClient::m_Connection
private

◆ m_pStun

CStun* CNetClient::m_pStun = nullptr
private

◆ m_RecvUnpacker

CNetRecvUnpacker CNetClient::m_RecvUnpacker
private

◆ m_Socket

NETSOCKET CNetClient::m_Socket

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