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

#include <internal.h>

+ Collaboration diagram for con::BufferedPacket:

Public Member Functions

 BufferedPacket (u32 a_size)
 
u16 getSeqnum () const
 
size_t size () const
 

Public Attributes

u8 * data
 
float time = 0.0f
 
float totaltime = 0.0f
 
u64 absolute_send_time = -1
 
Address address
 
unsigned int resend_count = 0
 

Private Attributes

std::vector< u8 > m_data
 

Constructor & Destructor Documentation

◆ BufferedPacket()

con::BufferedPacket::BufferedPacket ( u32 a_size)
inline

References data, and m_data.

Member Function Documentation

◆ getSeqnum()

u16 con::BufferedPacket::getSeqnum ( ) const

References BASE_HEADER_SIZE, data, readU16(), and size().

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

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

◆ size()

size_t con::BufferedPacket::size ( ) const
inline

References m_data.

Referenced by getSeqnum(), and con::ConnectionSendThread::resendReliable().

+ Here is the caller graph for this function:

Member Data Documentation

◆ absolute_send_time

u64 con::BufferedPacket::absolute_send_time = -1

◆ address

Address con::BufferedPacket::address

◆ data

u8* con::BufferedPacket::data

◆ m_data

std::vector<u8> con::BufferedPacket::m_data
private

Referenced by BufferedPacket(), and size().

◆ resend_count

unsigned int con::BufferedPacket::resend_count = 0

◆ time

float con::BufferedPacket::time = 0.0f

◆ totaltime

float con::BufferedPacket::totaltime = 0.0f

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