Files
VoidNet/include/NetworkBuffer.hpp
xX-TheDoctor-Xx 0ac8b4f6e8 Added Handshake class
Fixed NetworkBuffer include
Fixed some data types
TcpClient: Added SendBytes, SetOnDisconnectCallback, SetOnConnectCallback, SetOnMessageCallback methods and made callback std::function's private and fixed some method implementations
Added AcceptConnection on TcpServer
Fixed TcpServer AddToClientsList
2016-08-01 00:28:22 +01:00

22 lines
350 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 = Utility::BitConverter::FromUint32(8); // contains the size of the body
std::vector<byte> body;
};
#endif