![]() |
ConnectX 3.0
ConnectX Game Suite
|
#include <cstdint>#include <string>

Go to the source code of this file.
Enumerations | |
| enum class | MessageType : uint8_t { REQ_CONNECT = 0x01 , RES_CONNECT = 0x02 , DISCONNECT = 0x03 , HEARTBEAT = 0x04 , MAKE_MOVE = 0x10 , MOVE_RESULT = 0x11 , GAME_STATE_UPDATE = 0x12 , REQ_CREATE_GAME = 0x20 , RES_CREATE_GAME = 0x21 , REQ_LIST_GAMES = 0x22 , RES_LIST_GAMES = 0x23 , REQ_JOIN_GAME = 0x24 , RES_JOIN_GAME = 0x25 , ERROR = 0xFF } |
Functions | |
| std::string | messageTypeToString (MessageType type) |
|
strong |
| std::string messageTypeToString | ( | MessageType | type | ) |
Convert MessageType to string for logging/debugging