Implemented more networking
This commit is contained in:
13
network-shared/include/debug.h
Normal file
13
network-shared/include/debug.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
#include <iostream>
|
||||
|
||||
template<int I>
|
||||
void dump_buffer(std::array<uint8_t, I> &buff) {
|
||||
for (uint32_t b : buff) {
|
||||
std::cout << b << ' ';
|
||||
}
|
||||
std::cout << '\n';
|
||||
}
|
||||
|
||||
10
network-shared/include/packets.h
Normal file
10
network-shared/include/packets.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
enum PACKET : uint8_t {
|
||||
CONNECT,
|
||||
ACK,
|
||||
IDS,
|
||||
ENTITIES
|
||||
};
|
||||
Reference in New Issue
Block a user