summaryrefslogtreecommitdiffstats
path: root/src/NetworkClient.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/NetworkClient.hpp')
-rw-r--r--src/NetworkClient.hpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/NetworkClient.hpp b/src/NetworkClient.hpp
index a26c262..2bcbd9f 100644
--- a/src/NetworkClient.hpp
+++ b/src/NetworkClient.hpp
@@ -1,14 +1,16 @@
#pragma once
-#include <thread>
+#include <memory>
#include <queue>
-#include <mutex>
+#include <string>
+#include <chrono>
-#include "Network.hpp"
-#include "Event.hpp"
+class Network;
+struct Packet;
+enum ConnectionState : unsigned char;
class NetworkClient {
- Network network;
+ std::unique_ptr<Network> network;
std::queue <std::shared_ptr<Packet>> toSend;
std::queue <std::shared_ptr<Packet>> toReceive;
ConnectionState state;