R-Type  2
Doom but in better
Loading...
Searching...
No Matches
Message Struct Reference

Minimal network message with a 4-byte header (type + length) and a payload. More...

#include <message.hpp>

Collaboration diagram for Message:
Collaboration graph

Data Fields

uint8_t type
 Could map to messageType in GameMessage.hpp (CONNECT, DISCONNECT, etc.)
 
std::vector< uint8_t > payload
 Arbitrary payload bytes.
 

Detailed Description

Minimal network message with a 4-byte header (type + length) and a payload.

Definition at line 9 of file message.hpp.

Field Documentation

◆ payload

std::vector<uint8_t> Message::payload

Arbitrary payload bytes.

Definition at line 11 of file message.hpp.

◆ type

uint8_t Message::type

Could map to messageType in GameMessage.hpp (CONNECT, DISCONNECT, etc.)

Definition at line 10 of file message.hpp.


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