xale-db 1.0
minimal SQL engine, written in c++
Loading...
Searching...
No Matches
PacketConstants.h
Go to the documentation of this file.
1#ifndef NET_PACKET_CONST_H
2#define NET_PACKET_CONST_H
3
4#include <cstdint>
5
6namespace Xale::Net
7{
8 constexpr uint32_t MAGIC_NUMBER = 0x58414C45; // "XALE"
9 constexpr uint16_t VERSION = 0x0100; // 1.0
10
11 enum class CommandType : uint8_t
12 {
13 AUTH = 0x01,
14 QUERY = 0x02,
15 RESPONSE = 0x03,
16 UNKNOWN = 0xFF
17 };
18}
19#endif // NET_PACKET_CONST_H
Definition IPacket.h:8
constexpr uint32_t MAGIC_NUMBER
Definition PacketConstants.h:8
CommandType
Definition PacketConstants.h:12
@ RESPONSE
Definition PacketConstants.h:15
@ QUERY
Definition PacketConstants.h:14
@ UNKNOWN
Definition PacketConstants.h:16
@ AUTH
Definition PacketConstants.h:13
constexpr uint16_t VERSION
Definition PacketConstants.h:9