Added Tests project, Callback functions are in progress, NetworkBuffer is done, Network Message is WIP but already has a lot of code, Serializer is done (subject to change), Utility classes are being made, and TcpClientWindows is WIP.

Every single piece of code wrote today may or not change, but it will probably change because ill find a better way to do it xD
This commit is contained in:
xX-TheDoctor-Xx
2016-07-17 02:46:42 +01:00
parent 97262ee8c6
commit 16ed3619b3
37 changed files with 483 additions and 45 deletions

View File

@ -5,12 +5,30 @@
#pragma once
#endif
class NetworkMessage
{
public:
NetworkMessage();
#include "Defs.hpp"
#include "NetworkBuffer.hpp"
private:
struct NetworkMessage
{
NetworkMessage();
NetworkMessage(uint16 sender, byte distribution_mode, uint16 destination_id, byte tag, uint16 subject, NetworkBuffer buffer);
~NetworkMessage();
const NetworkMessage &EncodeMessage();
const NetworkMessage &NetworkMessage::DecodeMessage(const NetworkBuffer &buffer);
const NetworkMessage &NetworkMessage::DecodeMessageHeader(const NetworkBuffer &buffer);
void *DecodeMessageData(const NetworkBuffer &buffer);
uint16 sender;
uint16 destination_id;
byte distribution_mode;
uint16 tag;
uint16 subject;
void *data;
NetworkBuffer buffer;
};
#endif
#endif