Files
VoidNet/include/NetworkBuffer.hpp
xX-TheDoctor-Xx e677fdeb59 NetworkBuffer now has a fixed header value of 8
Implemented NetworkMessage EncodeMessage
2016-07-31 01:51:00 +01:00

21 lines
327 B
C++

#ifndef NETWORK_BUFFER_HPP
#define NETWORK_BUFFER_HPP
#ifdef _MSC_VER
#pragma once
#endif
#include "Defs.hpp"
#include <vector>
struct NetworkBuffer
{
NetworkBuffer();
~NetworkBuffer();
std::vector<byte> header = Utility::BitConverter::FromUint32(8); // contains the size of the body
std::vector<byte> body;
};
#endif