C# ConnectServer Source

Re: [Release] C# ConnectServer Source

Another advice:
Working with a fixed count of connection slots is not resource wise.
if you are going to work that way you must at least let the server manager to chose how many connections allow as a parameter so your line:
Code:
private DtClient[] Clients = new DtClient[100];
become:
Code:
private DtClient[] Clients = new DtClient[globalVariableMaxConnections];
I will recommend the use of thread pools instead of fixed count
 
Back