r-type  0.0.0
R-Type main
Loading...
Searching...
No Matches
eng::QueuedPacket Struct Reference

Represents a packet queued for asynchronous transmission to server. More...

#include <AsioClient.hpp>

+ Collaboration diagram for eng::QueuedPacket:

Public Member Functions

 QueuedPacket (const std::vector< std::uint8_t > &d, const bool rel=false)
 Constructor.
 

Public Attributes

std::vector< std::uint8_t > data
 Serialized packet data.
 
bool reliable
 Whether packet requires reliable delivery.
 

Detailed Description

Represents a packet queued for asynchronous transmission to server.

Used in the send queue to buffer outgoing packets before transmission

Definition at line 38 of file AsioClient.hpp.

Constructor & Destructor Documentation

◆ QueuedPacket()

eng::QueuedPacket::QueuedPacket ( const std::vector< std::uint8_t > & d,
const bool rel = false )
inlineexplicit

Constructor.

Parameters
dPacket data buffer
relReliability flag (default: false)

Definition at line 48 of file AsioClient.hpp.

Member Data Documentation

◆ data

std::vector<std::uint8_t> eng::QueuedPacket::data

Serialized packet data.

Definition at line 40 of file AsioClient.hpp.

Referenced by eng::AsioClient::processSendQueue().

◆ reliable

bool eng::QueuedPacket::reliable

Whether packet requires reliable delivery.

Definition at line 41 of file AsioClient.hpp.


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