public GpcmClient(TcpClient Client) { this.Client = Client; this.Stream = new ClientStream(Client); this.Disposed = false; ClientThread = new Thread(new ThreadStart(HandleClient)); ClientThread.IsBackground = true; ClientThread.Start(); }
public GpspClient(TcpClient client) { // Set disposed to false! this.Disposed = false; // Set the client variable this.Client = client; // Init a new client stream class Stream = new ClientStream(client); ClientThread = new Thread(new ThreadStart(Start)); ClientThread.IsBackground = true; ClientThread.Start(); }