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. | |
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.
|
inlineexplicit |
Constructor.
| d | Packet data buffer |
| rel | Reliability flag (default: false) |
Definition at line 48 of file AsioClient.hpp.
| std::vector<std::uint8_t> eng::QueuedPacket::data |
Serialized packet data.
Definition at line 40 of file AsioClient.hpp.
Referenced by eng::AsioClient::processSendQueue().
| bool eng::QueuedPacket::reliable |
Whether packet requires reliable delivery.
Definition at line 41 of file AsioClient.hpp.