Hanshake now has distribution_mode Removed all the undef SendMessage and redefenitions, we are undefing it in Defs.hpp and we are now defing it back Added SendHanshake GetMaxConnections SetMaxConnections and shutdown_internal methods in TcpServer.hpp and changed AcceptConnection parameter to uint16 Removed process_all_data method in VoidNetClient.hpp Placed some functions that are OS independent in main cpp files to prevent the DRY concept Fixed receive_data_array method in TcpClientWindows.cpp VoidNetClientAPI::SendMessage now checks if tags dont have the CONNECT or DISCONNECT value because thats reserved to the server
24 lines
337 B
C++
24 lines
337 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 sizeof(int32)
|
|
std::vector<byte> body;
|
|
|
|
bool valid = false;
|
|
};
|
|
|
|
#endif |