Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
con::IncomingSplitBuffer Class Reference

#include <internal.h>

+ Collaboration diagram for con::IncomingSplitBuffer:

Public Member Functions

 ~IncomingSplitBuffer ()
 
SharedBuffer< u8 > insert (BufferedPacketPtr &p_ptr, bool reliable)
 
void removeUnreliableTimedOuts (float dtime, float timeout)
 

Private Attributes

std::map< u16, IncomingSplitPacket * > m_buf
 
std::mutex m_map_mutex
 

Constructor & Destructor Documentation

◆ ~IncomingSplitBuffer()

con::IncomingSplitBuffer::~IncomingSplitBuffer ( )

References m_buf, and m_map_mutex.

Member Function Documentation

◆ insert()

SharedBuffer< u8 > con::IncomingSplitBuffer::insert ( BufferedPacketPtr & p_ptr,
bool reliable )

References con::IncomingSplitPacket::allReceived(), BASE_HEADER_SIZE, con::IncomingSplitPacket::chunk_count, derr_con, errorstream, con::IncomingSplitPacket::insert(), LOG, m_buf, m_map_mutex, p(), con::PACKET_TYPE_SPLIT, readU16(), readU8(), con::IncomingSplitPacket::reassemble(), and con::IncomingSplitPacket::reliable.

Referenced by con::UDPPeer::addSplitPacket().

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

◆ removeUnreliableTimedOuts()

void con::IncomingSplitBuffer::removeUnreliableTimedOuts ( float dtime,
float timeout )

References dout_con, LOG, m_buf, m_map_mutex, and p().

Referenced by con::ConnectionSendThread::runTimeouts().

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

Member Data Documentation

◆ m_buf

std::map<u16, IncomingSplitPacket*> con::IncomingSplitBuffer::m_buf
private

◆ m_map_mutex

std::mutex con::IncomingSplitBuffer::m_map_mutex
private

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