New configuration variable, log_to_file

Shutdown function added to TcpClient
Shutdown function added to TcpServer
Renamed socket to server_tcp_socket in TcpServer
Implemented ConfigReader class
This commit is contained in:
xX-TheDoctor-Xx
2016-07-23 12:35:20 +01:00
parent 6fa7872a6d
commit c83b4101d0
11 changed files with 66 additions and 12 deletions

View File

@ -21,6 +21,8 @@ public:
TcpServer(uint16 port = default_server_port);
~TcpServer();
void Shutdown();
uint16 AllocateID();
void AddToClientsList(const TcpClient &client);
bool StartServer(bool accept_connections);
@ -45,7 +47,7 @@ private:
std::vector<TcpClient> clients;
#ifdef _MSC_VER
SOCKET socket = INVALID_SOCKET;
SOCKET server_tcp_socket = INVALID_SOCKET;
struct addrinfo *result = nullptr;
struct addrinfo hints;
#endif