3#include <StormByte/buffer/fifo.hxx>
4#include <StormByte/network/visibility.h>
5#include <StormByte/serializable.hxx>
19namespace StormByte::Network::Transport {
55 class STORMBYTE_NETWORK_PUBLIC
Packet {
133 static constexpr
unsigned short PROCESS_THRESHOLD = 10;
Base class for wire-level packets.
Definition packet.hxx:55
Packet(Packet &&other) noexcept=default
Move constructor.
Packet(const Packet &other)=default
Copy constructor.
Buffer::FIFO Serialize() const noexcept
Serialize the packet to a byte buffer.
virtual ~Packet() noexcept=default
Virtual destructor.
virtual Buffer::DataType DoSerialize() const noexcept=0
Packet-specific serialization hook.
unsigned short OpcodeType
The type of the opcode.
Definition packet.hxx:57