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

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

#include <AsioServer.hpp>

+ Collaboration diagram for srv::QueuedPacket:

Public Member Functions

 QueuedPacket (const std::vector< std::uint8_t > &d, const asio::ip::udp::endpoint &dest, bool rel=false)
 Constructor.
 

Public Attributes

std::vector< std::uint8_t > data
 Serialized packet data.
 
asio::ip::udp::endpoint destination
 Target endpoint.
 
bool reliable
 Whether packet requires reliable delivery.
 

Detailed Description

Represents a packet queued for asynchronous transmission.

Used in the send queue to buffer outgoing packets before transmission

Definition at line 123 of file AsioServer.hpp.

Constructor & Destructor Documentation

◆ QueuedPacket()

srv::QueuedPacket::QueuedPacket ( const std::vector< std::uint8_t > & d,
const asio::ip::udp::endpoint & dest,
bool rel = false )
inline

Constructor.

Parameters
dPacket data buffer
destDestination endpoint
relReliability flag (default: false)

Definition at line 135 of file AsioServer.hpp.

Member Data Documentation

◆ data

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

Serialized packet data.

Definition at line 125 of file AsioServer.hpp.

Referenced by srv::AsioServer::processSendQueue().

◆ destination

asio::ip::udp::endpoint srv::QueuedPacket::destination

Target endpoint.

Definition at line 126 of file AsioServer.hpp.

Referenced by srv::AsioServer::processSendQueue().

◆ reliable

bool srv::QueuedPacket::reliable

Whether packet requires reliable delivery.

Definition at line 127 of file AsioServer.hpp.


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