SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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)
 
void GetBitArray (uint32_t nBytes, uint8_t *array)
 
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 () const
 
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

void CrudP_Packet::addAck ( uint32_t  id)
inline

Here is the caller graph for this function:

void CrudP_Packet::ByteAlign ( )
inline

Here is the call graph for this function:

void CrudP_Packet::CompressAndStoreString ( const char *  str)
bool CrudP_Packet::compressRequested ( ) const
inline

Here is the caller graph for this function:

time_point CrudP_Packet::creationTime ( ) const
inline

Here is the caller graph for this function:

uint8_t* CrudP_Packet::GetBuffer ( ) const
inline

Here is the call graph for this function:

bool CrudP_Packet::getIsCompressed ( ) const
inline

Here is the caller graph for this function:

size_t CrudP_Packet::getNumAcks ( ) const
inline

Here is the caller graph for this function:

uint32_t CrudP_Packet::getNumSibs ( ) const
inline

Here is the caller graph for this function:

size_t CrudP_Packet::GetPacketLength ( ) const
inline

Here is the call graph for this function:

uint32_t CrudP_Packet::GetSequenceNumber ( ) const
inline

Here is the caller graph for this function:

uint32_t CrudP_Packet::getSibId ( ) const
inline

Here is the caller graph for this function:

uint32_t CrudP_Packet::GetSiblingPosition ( ) const
inline
uint32_t CrudP_Packet::getSibPos ( ) const
inline

Here is the caller graph for this function:

BitStream* CrudP_Packet::GetStream ( )
inline

Here is the caller graph for this function:

bool CrudP_Packet::HasSiblings ( ) const
inline

Here is the caller graph for this function:

void CrudP_Packet::incRetransmits ( )
inline

Here is the caller graph for this function:

bool CrudP_Packet::IsFinalized ( ) const
inline
bool CrudP_Packet::isReliable ( ) const
inline

Here is the caller graph for this function:

time_point CrudP_Packet::lastSend ( ) const
inline

Here is the caller graph for this function:

uint32_t CrudP_Packet::retransmitCount ( ) const
inline

Here is the caller graph for this function:

void CrudP_Packet::SetFinalized ( )
inline
void CrudP_Packet::SetIsCompressed ( bool  compressed)
inline

Here is the caller graph for this function:

void CrudP_Packet::setLastSend ( time_point  t)
inline

Here is the caller graph for this function:

void CrudP_Packet::setNumSibs ( uint32_t  n)
inline

Here is the caller graph for this function:

void CrudP_Packet::SetReliabilty ( bool  r)
inline

Here is the caller graph for this function:

void CrudP_Packet::setSeqNo ( uint32_t  n)
inline

Here is the caller graph for this function:

void CrudP_Packet::setSibId ( uint32_t  n)
inline

Here is the caller graph for this function:

void CrudP_Packet::setSibPos ( uint32_t  n)
inline

Here is the caller graph for this function:

void CrudP_Packet::SetStream ( BitStream stream)
inline
void CrudP_Packet::StoreBitArray ( uint8_t *  array,
size_t  nBits 
)
inline

Here is the call graph for this function:

Here is the caller graph for this function:

void CrudP_Packet::StoreBits ( uint32_t  nBits,
uint32_t  dataBits 
)
inline

Here is the call graph for this function:

void CrudP_Packet::StorePackedBits ( uint32_t  nBits,
uint32_t  dataBits 
)
inline

Here is the call graph for this function:

void CrudP_Packet::StoreString ( const char *  str)
inline

Here is the call graph for this function:

Friends And Related Function Documentation

friend class PacketCollector
friend

Member Data Documentation

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

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