SEGS  0.6.1-develop [3e741b81]
Super Entity Game Server
Public Member Functions | Protected Attributes | Friends | List of all members
CrudP_Packet Class Reference

#include <CRUDP_Packet.h>

Collaboration diagram for CrudP_Packet:
Collaboration graph

Public Member Functions

 CrudP_Packet ()
 
 CrudP_Packet (const CrudP_Packet &)
 
 CrudP_Packet (BitStream *stream, bool hasDebugInfo)
 
 ~CrudP_Packet ()
 
uint32_t GetBits (uint32_t nBits)
 
uint32_t GetPackedBits (uint32_t nBits)
 
void GetString (QString &str)
 
float GetFloat ()
 
void StoreBits (uint32_t nBits, uint32_t dataBits)
 
void StoreBitArray (uint8_t *array, size_t nBits)
 
void StorePackedBits (uint32_t nBits, uint32_t dataBits)
 
void StoreString (const char *str)
 
void CompressAndStoreString (const char *str)
 
void SetFinalized ()
 
uint8_t * GetBuffer ()
 
size_t GetPacketLength () const
 
BitStreamGetStream ()
 
bool getIsCompressed () const
 
bool HasSiblings () const
 
bool IsFinalized () const
 
bool isReliable () const
 
bool compressRequested () const
 
uint32_t GetSequenceNumber () const
 
uint32_t GetSiblingPosition () const
 
uint32_t getNumSibs () const
 
uint32_t getSibId () const
 
uint32_t getSibPos () const
 
size_t getNumAcks () const
 
void ByteAlign ()
 
void SetStream (BitStream *stream)
 
void SetIsCompressed (bool compressed)
 
void SetReliabilty (bool r)
 
void setSeqNo (uint32_t n)
 
void setNumSibs (uint32_t n)
 
void setSibId (uint32_t n)
 
void setSibPos (uint32_t n)
 
void setContents (const BitStream &t)
 
void addAck (uint32_t id)
 
uint32_t getNextAck ()
 
void dump () const
 
time_point creationTime () const
 
time_point lastSend () const
 
void setLastSend (time_point t)
 
void incRetransmits ()
 
uint32_t retransmitCount () const
 

Protected Attributes

BitStreamm_stream
 
bool m_compressed
 
bool m_finalized
 
bool m_reliable
 
bool m_compress_on_send =false
 
uint32_t m_seqNo
 
uint32_t m_numSibs
 
uint32_t m_sibId
 
uint32_t m_sibPos
 
time_point m_creation_time = std::chrono::steady_clock::now()
 
time_point m_xfer_time
 
uint32_t m_retransmit_count
 
std::set< uint32_t > m_acks
 

Friends

class PacketCollector
 

Member Function Documentation

◆ addAck()

void CrudP_Packet::addAck ( uint32_t  id)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CompressAndStoreString()

void CrudP_Packet::CompressAndStoreString ( const char *  str)

◆ compressRequested()

bool CrudP_Packet::compressRequested ( ) const
inline
Here is the caller graph for this function:

◆ creationTime()

time_point CrudP_Packet::creationTime ( ) const
inline
Here is the caller graph for this function:

◆ getIsCompressed()

bool CrudP_Packet::getIsCompressed ( ) const
inline
Here is the caller graph for this function:

◆ getNumAcks()

size_t CrudP_Packet::getNumAcks ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getNumSibs()

uint32_t CrudP_Packet::getNumSibs ( ) const
inline
Here is the caller graph for this function:

◆ GetSequenceNumber()

uint32_t CrudP_Packet::GetSequenceNumber ( ) const
inline
Here is the caller graph for this function:

◆ getSibId()

uint32_t CrudP_Packet::getSibId ( ) const
inline
Here is the caller graph for this function:

◆ GetSiblingPosition()

uint32_t CrudP_Packet::GetSiblingPosition ( ) const
inline
Here is the caller graph for this function:

◆ getSibPos()

uint32_t CrudP_Packet::getSibPos ( ) const
inline
Here is the caller graph for this function:

◆ GetStream()

BitStream* CrudP_Packet::GetStream ( )
inline
Here is the caller graph for this function:

◆ HasSiblings()

bool CrudP_Packet::HasSiblings ( ) const
inline
Here is the caller graph for this function:

◆ incRetransmits()

void CrudP_Packet::incRetransmits ( )
inline
Here is the caller graph for this function:

◆ IsFinalized()

bool CrudP_Packet::IsFinalized ( ) const
inline

◆ isReliable()

bool CrudP_Packet::isReliable ( ) const
inline
Here is the caller graph for this function:

◆ lastSend()

time_point CrudP_Packet::lastSend ( ) const
inline
Here is the caller graph for this function:

◆ retransmitCount()

uint32_t CrudP_Packet::retransmitCount ( ) const
inline
Here is the caller graph for this function:

◆ SetFinalized()

void CrudP_Packet::SetFinalized ( )
inline
Here is the call graph for this function:

◆ SetIsCompressed()

void CrudP_Packet::SetIsCompressed ( bool  compressed)
inline
Here is the caller graph for this function:

◆ setLastSend()

void CrudP_Packet::setLastSend ( time_point  t)
inline
Here is the caller graph for this function:

◆ setNumSibs()

void CrudP_Packet::setNumSibs ( uint32_t  n)
inline
Here is the caller graph for this function:

◆ SetReliabilty()

void CrudP_Packet::SetReliabilty ( bool  r)
inline
Here is the caller graph for this function:

◆ setSeqNo()

void CrudP_Packet::setSeqNo ( uint32_t  n)
inline
Here is the caller graph for this function:

◆ setSibId()

void CrudP_Packet::setSibId ( uint32_t  n)
inline
Here is the caller graph for this function:

◆ setSibPos()

void CrudP_Packet::setSibPos ( uint32_t  n)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetStream()

void CrudP_Packet::SetStream ( BitStream stream)
inline
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ PacketCollector

friend class PacketCollector
friend

Member Data Documentation

◆ m_acks

std::set<uint32_t> CrudP_Packet::m_acks
protected

◆ m_compress_on_send

bool CrudP_Packet::m_compress_on_send =false
protected

◆ m_compressed

bool CrudP_Packet::m_compressed
protected

◆ m_creation_time

time_point CrudP_Packet::m_creation_time = std::chrono::steady_clock::now()
protected

◆ m_finalized

bool CrudP_Packet::m_finalized
protected

◆ m_numSibs

uint32_t CrudP_Packet::m_numSibs
protected

◆ m_reliable

bool CrudP_Packet::m_reliable
protected

◆ m_retransmit_count

uint32_t CrudP_Packet::m_retransmit_count
protected

◆ m_seqNo

uint32_t CrudP_Packet::m_seqNo
protected

◆ m_sibId

uint32_t CrudP_Packet::m_sibId
protected

◆ m_sibPos

uint32_t CrudP_Packet::m_sibPos
protected

◆ m_stream

BitStream* CrudP_Packet::m_stream
protected

◆ m_xfer_time

time_point CrudP_Packet::m_xfer_time
protected

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