Files
VoidNet/include/NetworkBuffer.hpp
xX-TheDoctor-Xx fcc5c570e1 NetworkBuffer now has valid parameter
Removed NetworkBuffer variable in NetworkMessage
TcpClient DataAvailable parameter type is now int32
Fixed NetworkMessage::EncododeMessage to put the size in the Buffer's header and to validate and fixed DecodeMessage to check the buffer's valid variable
Fixed some methods in TcpClientWindows
2016-08-15 01:08:41 +01:00

24 lines
325 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;
bool valid = false;
};
#endif