DDraceNetwork Documentation
Loading...
Searching...
No Matches
CPacketChunkUnpacker Class Reference

#include <network.h>

Collaboration diagram for CPacketChunkUnpacker:
[legend]

Public Member Functions

void FeedPacket (const NETADDR &Addr, const CNetPacketConstruct &Packet, CNetConnection *pConnection, int ClientId)
bool UnpackNextChunk (CNetChunk *pChunk)

Private Attributes

bool m_Valid = false
NETADDR m_Addr
CNetConnectionm_pConnection
int m_CurrentChunk
int m_ClientId
CNetPacketConstruct m_Data

Detailed Description

Accepts a non-control packet containing one or more chunks and unpacks each chunk individually. After a packet has been fed into the unpacker by calling FeedPacket, all chunks have to be unpacked by calling UnpackNextChunk until the function returns false, before the unpacker can be fed another packet.

Member Function Documentation

◆ FeedPacket()

void CPacketChunkUnpacker::FeedPacket ( const NETADDR & Addr,
const CNetPacketConstruct & Packet,
CNetConnection * pConnection,
int ClientId )

◆ UnpackNextChunk()

bool CPacketChunkUnpacker::UnpackNextChunk ( CNetChunk * pChunk)

Member Data Documentation

◆ m_Addr

NETADDR CPacketChunkUnpacker::m_Addr
private

◆ m_ClientId

int CPacketChunkUnpacker::m_ClientId
private

◆ m_CurrentChunk

int CPacketChunkUnpacker::m_CurrentChunk
private

◆ m_Data

CNetPacketConstruct CPacketChunkUnpacker::m_Data
private

◆ m_pConnection

CNetConnection* CPacketChunkUnpacker::m_pConnection
private

◆ m_Valid

bool CPacketChunkUnpacker::m_Valid = false
private

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