56 std::vector<irsol::types::byte_t>
payload{};
Represents a serialized protocol message with header and payload.
std::vector< irsol::types::byte_t > payload
The binary payload of the serialized message.
std::string header
The textual header of the serialized message.
bool hasHeader() const
Checks whether the serialized message contains a non-empty header.
std::string toString() const
Converts the serialized message to a string representation.
SerializedMessage(SerializedMessage &&) noexcept=default
Move constructor (defaulted).
size_t payloadSize() const
Returns the size of the payload in bytes.
bool hasPayload() const
Checks whether the serialized message contains a non-empty payload.
Core type definitions for networking, time handling, and protocol values used throughout the irsol li...