From 4d7b1da29e0957ac798ee8e6da8288cbd4ae5c79 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Thu, 18 May 2017 19:03:05 +0500 Subject: 2017-05-18 --- NetworkClient.hpp | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 NetworkClient.hpp (limited to 'NetworkClient.hpp') diff --git a/NetworkClient.hpp b/NetworkClient.hpp deleted file mode 100644 index a41b5f4..0000000 --- a/NetworkClient.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#pragma once - -#include -#include -#include -#include "Network.hpp" - -struct ServerInfo{ - std::string version; - int protocol = 0; - int players_max = 0; - int players_online = 0; - std::vector> players; - std::string description; - double ping = 0; - std::string favicon; - std::string json; -}; -class NetworkClient { -public: - NetworkClient(std::string address, unsigned short port, std::string username); - ~NetworkClient(); - - void Update(); - - void MainLoop(); - - Packet * GetPacket(); - void AddPacketToQueue(Packet packet); - - static ServerInfo ServerPing(std::string address,unsigned short port); -private: - std::mutex m_updateMutex; - std::thread m_networkThread; - bool isContinue=true; - NetworkClient (const NetworkClient&); - NetworkClient&operator=(const NetworkClient&); - Network m_network; - std::queue m_received; - std::queue m_toSend; -}; - -- cgit v1.2.3