diff options
Diffstat (limited to '')
-rw-r--r-- | src/NetworkClient.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/NetworkClient.hpp b/src/NetworkClient.hpp index 2bcbd9f..f372468 100644 --- a/src/NetworkClient.hpp +++ b/src/NetworkClient.hpp @@ -4,6 +4,7 @@ #include <queue> #include <string> #include <chrono> +#include <thread> class Network; struct Packet; @@ -16,12 +17,10 @@ class NetworkClient { ConnectionState state; int compressionThreshold = -1; std::chrono::steady_clock::time_point timeOfLastKeepAlivePacket; + std::thread thread; + bool isRunning=true; + void ExecNs(); public: NetworkClient(std::string address, unsigned short port, std::string username); ~NetworkClient(); - - std::shared_ptr <Packet> ReceivePacket(); - void SendPacket(std::shared_ptr<Packet> packet); - - void UpdatePacket(); };
\ No newline at end of file |