Added maximum clients count variable and changed maximum allowed clients from 32 to 64

parent fefee234
......@@ -37,7 +37,7 @@ bool GameServer::start(enet_uint16 port)
address.port = port;
host = enet_host_create (&address /* the address to bind the server host to */,
32 /* allow up to 32 clients and/or outgoing connections */,
MAXIMUM_CLIENTS_COUNT /* allow up to MAXIMUM_CLIENTS_COUNT clients and/or outgoing connections */,
2 /* allow up to 2 channels to be used, 0 and 1 */,
0 /* assume any amount of incoming bandwidth */,
0 /* assume any amount of outgoing bandwidth */);
......
......@@ -23,6 +23,8 @@ const long long DISCOVER_SELECT_TIMEOUT = 1000;
const long long BROADCAST_SERVER_THREAD_SLEEP = 50;
const long long BROADCAST_CLIENT_THREAD_SLEEP = 50;
size_t MAXIMUM_CLIENTS_COUNT = 64;
//const enet_uint32 LOCALHOST_ADDRESS =
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment