Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        public void createReader(SR2DClient clientGest, SR2DListener listener, TcpClient client)
        {
            readerWork = true;

            reader = new SR2DReader(clientGest, listener, client);
        }
Esempio n. 4
0
        //Creation d'un reader
        public void createReader(SR2DListener listener, TcpClient client)
        {
            SR2DClient reader = new SR2DClient(listener, mF, client);

            mF.clientsList.Add(reader);
        }