Files
VoidNet/include/NetworkBuffer.hpp
xX-TheDoctor-Xx bb6a2a25d3 Massive update:
Changed all byte pointers to vectors
NetworkMessage: DecodeMessage and EncodeMessage are now static
TcpClient: Fixed OnMessage function
NetworkMessage: merged both private methods into 1 method
2016-07-31 01:28:36 +01:00

21 lines
288 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; // contains the size of the body
std::vector<byte> body;
};
#endif