/// <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; }
/// <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; }