DDraceNetwork Docs
CNetBase Class Reference

#include <network.h>

Collaboration diagram for CNetBase:
[legend]

Static Public Member Functions

static void OpenLog (IOHANDLE DataLogSent, IOHANDLE DataLogRecv)
 
static void CloseLog ()
 
static void Init ()
 
static int Compress (const void *pData, int DataSize, void *pOutput, int OutputSize)
 
static int Decompress (const void *pData, int DataSize, void *pOutput, int OutputSize)
 
static void SendControlMsg (NETSOCKET Socket, NETADDR *pAddr, int Ack, int ControlMsg, const void *pExtra, int ExtraSize, SECURITY_TOKEN SecurityToken, bool Sixup=false)
 
static void SendControlMsgWithToken7 (NETSOCKET Socket, NETADDR *pAddr, TOKEN Token, int Ack, int ControlMsg, TOKEN MyToken, bool Extended)
 
static void SendPacketConnless (NETSOCKET Socket, NETADDR *pAddr, const void *pData, int DataSize, bool Extended, unsigned char aExtra[4])
 
static void SendPacket (NETSOCKET Socket, NETADDR *pAddr, CNetPacketConstruct *pPacket, SECURITY_TOKEN SecurityToken, bool Sixup=false, bool NoCompress=false)
 
static int UnpackPacket (unsigned char *pBuffer, int Size, CNetPacketConstruct *pPacket, bool &Sixup, SECURITY_TOKEN *pSecurityToken=nullptr, SECURITY_TOKEN *pResponseToken=nullptr)
 
static bool IsSeqInBackroom (int Seq, int Ack)
 

Static Private Attributes

static IOHANDLE ms_DataLogSent = 0
 
static IOHANDLE ms_DataLogRecv = 0
 
static CHuffman ms_Huffman
 

Member Function Documentation

◆ CloseLog()

void CNetBase::CloseLog ( )
static

◆ Compress()

int CNetBase::Compress ( const void *  pData,
int  DataSize,
void *  pOutput,
int  OutputSize 
)
static

◆ Decompress()

int CNetBase::Decompress ( const void *  pData,
int  DataSize,
void *  pOutput,
int  OutputSize 
)
static

◆ Init()

void CNetBase::Init ( )
static

◆ IsSeqInBackroom()

bool CNetBase::IsSeqInBackroom ( int  Seq,
int  Ack 
)
static

◆ OpenLog()

void CNetBase::OpenLog ( IOHANDLE  DataLogSent,
IOHANDLE  DataLogRecv 
)
static

◆ SendControlMsg()

void CNetBase::SendControlMsg ( NETSOCKET  Socket,
NETADDR pAddr,
int  Ack,
int  ControlMsg,
const void *  pExtra,
int  ExtraSize,
SECURITY_TOKEN  SecurityToken,
bool  Sixup = false 
)
static

◆ SendControlMsgWithToken7()

void CNetBase::SendControlMsgWithToken7 ( NETSOCKET  Socket,
NETADDR pAddr,
TOKEN  Token,
int  Ack,
int  ControlMsg,
TOKEN  MyToken,
bool  Extended 
)
static

◆ SendPacket()

void CNetBase::SendPacket ( NETSOCKET  Socket,
NETADDR pAddr,
CNetPacketConstruct pPacket,
SECURITY_TOKEN  SecurityToken,
bool  Sixup = false,
bool  NoCompress = false 
)
static

◆ SendPacketConnless()

void CNetBase::SendPacketConnless ( NETSOCKET  Socket,
NETADDR pAddr,
const void *  pData,
int  DataSize,
bool  Extended,
unsigned char  aExtra[4] 
)
static

◆ UnpackPacket()

int CNetBase::UnpackPacket ( unsigned char *  pBuffer,
int  Size,
CNetPacketConstruct pPacket,
bool &  Sixup,
SECURITY_TOKEN pSecurityToken = nullptr,
SECURITY_TOKEN pResponseToken = nullptr 
)
static

Member Data Documentation

◆ ms_DataLogRecv

IOHANDLE CNetBase::ms_DataLogRecv = 0
staticprivate

◆ ms_DataLogSent

IOHANDLE CNetBase::ms_DataLogSent = 0
staticprivate

◆ ms_Huffman

CHuffman CNetBase::ms_Huffman
staticprivate

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