summaryrefslogtreecommitdiffstats
path: root/include/network/Stream.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/network/Stream.hpp (renamed from src/network/Stream.hpp)18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/network/Stream.hpp b/include/network/Stream.hpp
index 5babb08..a24dfbe 100644
--- a/src/network/Stream.hpp
+++ b/include/network/Stream.hpp
@@ -5,23 +5,15 @@
#include <stdexcept>
#include <vector>
#include <cstring>
+
#include <nlohmann/json.hpp>
#include <easylogging++.h>
-#include "Socket.hpp"
-#include "../utility/Vector.hpp"
-
-class Stream {
-protected:
- template<class T>
- void endswap(T &obj) {
- unsigned char *raw = reinterpret_cast<unsigned char *>(&obj);
- std::reverse(raw, raw + sizeof(T));
- }
- void endswap(unsigned char *arr, size_t arrLen) {
- std::reverse(arr, arr + arrLen);
- }
+#include <network/Socket.hpp>
+#include <Vector.hpp>
+#include <Utility.hpp>
+class Stream {
public:
virtual ~Stream() {};
};