Implemented more networking

This commit is contained in:
2019-09-04 21:08:52 +00:00
parent f77c9d7823
commit ac463f0669
5 changed files with 170 additions and 26 deletions

View 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';
}

View File

@@ -0,0 +1,10 @@
#pragma once
#include <cstdint>
enum PACKET : uint8_t {
CONNECT,
ACK,
IDS,
ENTITIES
};