Skip to main content

Module message

Module message 

Source
Expand description

Module handling the protocol messages exchanged between client and server.

It defines message structures, serialization/deserialization logic, and error handling used in the communication protocol.

This module supports parsing raw messages into typed enums for client and server messages, managing data hashes, server feature flags, and achievement records.

Structs§

AchievementRecord
Record representing an achievement, including its UUID and optional audio file hash.
Capabilities
Bitmask enum representing capabilities supported by the server.
DataHash
Wrapper around an MD5 Digest representing a data hash.
Message
Represents a raw protocol message with a type byte and a payload.

Enums§

ClientMessage
Enum of messages sent from the client to the server.
ErrorResponse
Enum representing error responses from the server.
ServerMessage
Enum of messages sent from the server to the client.