public SR2DReader(SR2DClient clientGest, SR2DListener listener, TcpClient client) { this.client = client; this.clientGest = clientGest; this.listener = listener; ThreadStart readerThreadStart = new ThreadStart(read); readerThread = new Thread(readerThreadStart); readerThread.Start(); }
public SR2DClient(SR2DListener listener, mainForm mF, TcpClient client) { status = "unknown"; this.mF = mF; this.listener = listener; this.client = client; clientAddr = this.client.Client.RemoteEndPoint; pingTick = new System.Timers.Timer(10000); pingTick.Start(); pingTick.Elapsed += new ElapsedEventHandler(ping); createReader(this, listener, client); }
public void createReader(SR2DClient clientGest, SR2DListener listener, TcpClient client) { readerWork = true; reader = new SR2DReader(clientGest, listener, client); }
//Creation d'un reader public void createReader(SR2DListener listener, TcpClient client) { SR2DClient reader = new SR2DClient(listener, mF, client); mF.clientsList.Add(reader); }