very buggy system working, but only works properly with one client at a time due to recv blocking
This commit is contained in:
+5
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user