Beispiel #1
0
 public Server(IRequestHandler requestHandler, int clientsNumber, int receiveTimeout)
 {
     this.requestHandler = requestHandler;
     this.clientsNumber  = clientsNumber;
     this.receiveTimeout = receiveTimeout;
     clientsList         = new ClientsList(clientsNumber);
 }
Beispiel #2
0
 public Server(IRequestHandler requestHandler, int clientsNumber, int receiveTimeout, Encoding encoding)
 {
     this.requestHandler = requestHandler;
     this.clientsNumber  = clientsNumber;
     this.receiveTimeout = receiveTimeout;
     clientsList         = new ClientsList(clientsNumber);
     this.encoding       = encoding;
 }