mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add protocol version check
This commit is contained in:
parent
d861595f78
commit
e83b3b3ce1
2 changed files with 35 additions and 2 deletions
|
|
@ -21,6 +21,9 @@ namespace dv {
|
|||
class Engine;
|
||||
|
||||
namespace devtools {
|
||||
inline constexpr const char VCDBG_MAGIC[8] = "vc-dbg\0";
|
||||
inline constexpr int VCDBG_VERSION = 1;
|
||||
|
||||
class ClientConnection {
|
||||
public:
|
||||
ClientConnection(network::Network& network, u64id_t connection)
|
||||
|
|
@ -37,6 +40,9 @@ namespace devtools {
|
|||
network::Network& network;
|
||||
size_t messageLength = 0;
|
||||
u64id_t connection;
|
||||
bool initiated = false;
|
||||
|
||||
bool initiate(network::ReadableConnection* connection);
|
||||
};
|
||||
|
||||
enum class DebuggingEventType {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue