summaryrefslogtreecommitdiffstats
path: root/old/network/NetworkClient.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'old/network/NetworkClient.hpp')
-rw-r--r--old/network/NetworkClient.hpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/old/network/NetworkClient.hpp b/old/network/NetworkClient.hpp
deleted file mode 100644
index cf41f91..0000000
--- a/old/network/NetworkClient.hpp
+++ /dev/null
@@ -1,26 +0,0 @@
-#pragma once
-
-#include <thread>
-#include <queue>
-#include <mutex>
-
-#include "Network.hpp"
-
-class NetworkClient {
- Network network;
- std::thread networkThread;
- std::mutex toSendMutex;
- std::mutex toReceiveMutex;
- std::queue <std::shared_ptr<Packet>> toSend;
- std::queue <std::shared_ptr<Packet>> toReceive;
- bool isActive=true;
- bool &isRunning;
- ConnectionState state;
- void NetworkLoop();
-public:
- NetworkClient(std::string address, unsigned short port, std::string username, bool &quit);
- ~NetworkClient();
-
- std::shared_ptr <Packet> ReceivePacket();
- void SendPacket(std::shared_ptr<Packet> packet);
-}; \ No newline at end of file