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
This commit is contained in:
@ -7,13 +7,15 @@
|
||||
|
||||
#include "Defs.hpp"
|
||||
|
||||
#include <vector>
|
||||
|
||||
struct NetworkBuffer
|
||||
{
|
||||
NetworkBuffer();
|
||||
~NetworkBuffer();
|
||||
|
||||
byte *header = nullptr;
|
||||
byte *body = nullptr;
|
||||
std::vector<byte> header; // contains the size of the body
|
||||
std::vector<byte> body;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user