Got tcp receiving for windows done

Callbacks are done - maybe ill add a few more later - i dont know if they will work correctly yet
Fixed the Serialization class
Added internal tags - for now it only has CONNECT and DISCONNECT - maybe ill add more later
Fixed some data type parameters in some functions
This commit is contained in:
xX-TheDoctor-Xx
2016-07-17 19:59:22 +01:00
parent 16ed3619b3
commit 72aa8ee0c4
11 changed files with 56 additions and 22 deletions

View File

@ -7,12 +7,10 @@
#include "Defs.hpp"
#include <array>
class Serializer
struct Serializer
{
template<typename T> std::array<byte, sizeof(T)> to_bytes(const T& object);
template<typename T> T& from_bytes(const std::array<byte, sizeof(T)> &bytes, T& object);
template<typename T> static const std::vector<byte> &to_bytes(const T &object);
template<typename T> static const T &from_bytes(byte *bytes, T &object);
};
#endif