Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
con::IncomingSplitPacket Struct Reference

#include <internal.h>

+ Collaboration diagram for con::IncomingSplitPacket:

Public Member Functions

 IncomingSplitPacket (u32 cc, bool r)
 
 IncomingSplitPacket ()=delete
 
bool allReceived () const
 
bool insert (u32 chunk_num, SharedBuffer< u8 > &chunkdata)
 
SharedBuffer< u8 > reassemble ()
 

Public Attributes

float time = 0.0f
 
u32 chunk_count
 
bool reliable
 

Private Attributes

std::map< u16, SharedBuffer< u8 > > chunks
 

Constructor & Destructor Documentation

◆ IncomingSplitPacket() [1/2]

con::IncomingSplitPacket::IncomingSplitPacket ( u32 cc,
bool r )
inline

◆ IncomingSplitPacket() [2/2]

con::IncomingSplitPacket::IncomingSplitPacket ( )
delete

Member Function Documentation

◆ allReceived()

bool con::IncomingSplitPacket::allReceived ( ) const
inline

References chunk_count, and chunks.

Referenced by con::IncomingSplitBuffer::insert(), and reassemble().

+ Here is the caller graph for this function:

◆ insert()

bool con::IncomingSplitPacket::insert ( u32 chunk_num,
SharedBuffer< u8 > & chunkdata )

References chunk_count, chunks, and sanity_check.

Referenced by con::IncomingSplitBuffer::insert().

+ Here is the caller graph for this function:

◆ reassemble()

SharedBuffer< u8 > con::IncomingSplitPacket::reassemble ( )

References allReceived(), chunk_count, chunks, SharedBuffer< T >::getSize(), and sanity_check.

Referenced by con::IncomingSplitBuffer::insert().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ chunk_count

u32 con::IncomingSplitPacket::chunk_count

◆ chunks

std::map<u16, SharedBuffer<u8> > con::IncomingSplitPacket::chunks
private

Referenced by allReceived(), insert(), and reassemble().

◆ reliable

bool con::IncomingSplitPacket::reliable

◆ time

float con::IncomingSplitPacket::time = 0.0f

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