Пример #1
0
 /// <summary>
 /// Construct the Server.
 /// </summary>
 /// <param name="client">The accepted TcpClient from the ListenServer.</param>
 /// <param name="closeServer">A delegate to the method that should be called once the server closes.</param>
 public Server(TcpClient client, ListenServer.CloseServerDelegate closeServer)
 {
     this.client      = client;
     thread           = new Thread(new ThreadStart(Run));
     this.closeServer = closeServer;
 }
Пример #2
0
 /// <summary>
 /// Construct the Server.
 /// </summary>
 /// <param name="client">The accepted TcpClient from the ListenServer.</param>
 /// <param name="closeServer">A delegate to the method that should be called once the server closes.</param>
 public Server(TcpClient client, ListenServer.CloseServerDelegate closeServer)
 {
     this.client = client;
     thread = new Thread(new ThreadStart(Run));
     this.closeServer = closeServer;
 }