The client is receiving the list of servers

This commit is contained in:
Kayne Ruse
2013-11-22 23:19:29 +11:00
parent cb9aef95ec
commit e3605e4dc5
6 changed files with 55 additions and 77 deletions
+11 -6
View File
@@ -22,16 +22,20 @@
#ifndef SERVERAPPLICATION_HPP_
#define SERVERAPPLICATION_HPP_
#include "config_utility.hpp"
//networking
#include "network_packet.hpp"
#include "thread_safe_queue.hpp"
#include "udp_network_utility.hpp"
#include "world_room.hpp"
//APIs
#include "sqlite3/sqlite3.h"
#include "SDL/SDL.h"
#include "SDL/SDL_thread.h"
//misc
#include "config_utility.hpp"
#include "world_room.hpp"
//The main application class
class ServerApplication {
public:
@@ -47,10 +51,6 @@ public:
private:
void HandlePacket(NetworkPacket);
//members
bool running = true;
ConfigUtility config;
//networking
UDPNetworkUtility networkUtil;
ThreadSafeQueue<NetworkPacket> networkQueue;
@@ -58,6 +58,11 @@ private:
//database
sqlite3* database = nullptr;
//misc
bool running = true;
ConfigUtility config;
WorldRoom worldRoom;
};
#endif