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
21 lines
288 B
C++
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 |