InternalTags cant be higher than 255 because they will be converted to byte added new ToString method in Utility::StringConverter Server now closes the connection better
22 lines
303 B
C++
22 lines
303 B
C++
#ifndef NETWORK_BUFFER_HPP
|
|
#define NETWORK_BUFFER_HPP
|
|
|
|
#ifdef _MSC_VER
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "Defs.hpp"
|
|
#include "Utility.hpp"
|
|
|
|
#include <vector>
|
|
|
|
struct NetworkBuffer
|
|
{
|
|
NetworkBuffer();
|
|
~NetworkBuffer();
|
|
|
|
std::vector<byte> header; // size must always be 8
|
|
std::vector<byte> body;
|
|
};
|
|
|
|
#endif |