very buggy system working, but only works properly with one client at a time due to recv blocking

This commit is contained in:
Kayne Ruse
2013-05-17 19:32:45 +10:00
parent 738320e88e
commit 24e48dec53
12 changed files with 153 additions and 42 deletions
+5 -5
View File
@@ -4,12 +4,12 @@
#include "config_utility.hpp"
#include "network.hpp"
#include <vector>
#include <list>
class Server {
public:
Server();
~Server();
Server() = default;
~Server() = default;
void Init();
void Proc();
@@ -19,10 +19,10 @@ public:
void UpdateWorld();
void HandleOutput();
private:
bool running;
bool running = false;
ConfigUtility config;
TCPServerSocket servSock;
std::vector<TCPSocket*> sockVec;
std::list<TCPSocket*> socketList;
};
#endif