diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-10-17 20:33:13 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-01-13 03:39:32 +0100 |
commit | a6e0c9ce9b6c468d0e622ffb5c05eba664ea4f47 (patch) | |
tree | 160309441fbe58921d9483e8d12e8d2e57955b97 /src/NetworkClient.hpp | |
parent | 2017-10-15 (diff) | |
download | AltCraft-a6e0c9ce9b6c468d0e622ffb5c05eba664ea4f47.tar AltCraft-a6e0c9ce9b6c468d0e622ffb5c05eba664ea4f47.tar.gz AltCraft-a6e0c9ce9b6c468d0e622ffb5c05eba664ea4f47.tar.bz2 AltCraft-a6e0c9ce9b6c468d0e622ffb5c05eba664ea4f47.tar.lz AltCraft-a6e0c9ce9b6c468d0e622ffb5c05eba664ea4f47.tar.xz AltCraft-a6e0c9ce9b6c468d0e622ffb5c05eba664ea4f47.tar.zst AltCraft-a6e0c9ce9b6c468d0e622ffb5c05eba664ea4f47.zip |
Diffstat (limited to 'src/NetworkClient.hpp')
-rw-r--r-- | src/NetworkClient.hpp | 12 |
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; |