ConnectX 3.0
ConnectX Game Suite
Loading...
Searching...
No Matches
Protocol::ErrorCode Namespace Reference

Variables

constexpr uint16_t UNKNOWN_ERROR = 0
 
constexpr uint16_t INVALID_MESSAGE = 1
 
constexpr uint16_t PROTOCOL_VERSION_MISMATCH = 2
 
constexpr uint16_t CONNECTION_REFUSED = 100
 
constexpr uint16_t ALREADY_CONNECTED = 101
 
constexpr uint16_t SESSION_EXPIRED = 102
 
constexpr uint16_t INVALID_SESSION_TOKEN = 103
 
constexpr uint16_t GAME_NOT_FOUND = 200
 
constexpr uint16_t GAME_FULL = 201
 
constexpr uint16_t GAME_ALREADY_STARTED = 202
 
constexpr uint16_t GAME_NOT_STARTED = 203
 
constexpr uint16_t INVALID_MOVE = 300
 
constexpr uint16_t NOT_YOUR_TURN = 301
 
constexpr uint16_t COLUMN_FULL = 302
 
constexpr uint16_t GAME_ALREADY_OVER = 303
 

Variable Documentation

◆ ALREADY_CONNECTED

constexpr uint16_t Protocol::ErrorCode::ALREADY_CONNECTED = 101
constexpr

◆ COLUMN_FULL

constexpr uint16_t Protocol::ErrorCode::COLUMN_FULL = 302
constexpr

◆ CONNECTION_REFUSED

constexpr uint16_t Protocol::ErrorCode::CONNECTION_REFUSED = 100
constexpr

◆ GAME_ALREADY_OVER

constexpr uint16_t Protocol::ErrorCode::GAME_ALREADY_OVER = 303
constexpr

◆ GAME_ALREADY_STARTED

constexpr uint16_t Protocol::ErrorCode::GAME_ALREADY_STARTED = 202
constexpr

◆ GAME_FULL

constexpr uint16_t Protocol::ErrorCode::GAME_FULL = 201
constexpr

◆ GAME_NOT_FOUND

constexpr uint16_t Protocol::ErrorCode::GAME_NOT_FOUND = 200
constexpr

◆ GAME_NOT_STARTED

constexpr uint16_t Protocol::ErrorCode::GAME_NOT_STARTED = 203
constexpr

◆ INVALID_MESSAGE

constexpr uint16_t Protocol::ErrorCode::INVALID_MESSAGE = 1
constexpr

◆ INVALID_MOVE

constexpr uint16_t Protocol::ErrorCode::INVALID_MOVE = 300
constexpr

◆ INVALID_SESSION_TOKEN

constexpr uint16_t Protocol::ErrorCode::INVALID_SESSION_TOKEN = 103
constexpr

◆ NOT_YOUR_TURN

constexpr uint16_t Protocol::ErrorCode::NOT_YOUR_TURN = 301
constexpr

◆ PROTOCOL_VERSION_MISMATCH

constexpr uint16_t Protocol::ErrorCode::PROTOCOL_VERSION_MISMATCH = 2
constexpr

◆ SESSION_EXPIRED

constexpr uint16_t Protocol::ErrorCode::SESSION_EXPIRED = 102
constexpr

◆ UNKNOWN_ERROR

constexpr uint16_t Protocol::ErrorCode::UNKNOWN_ERROR = 0
constexpr