Exemplo n.º 1
0
        public void ChangeClientToDoctor(TcpClient client, ClientThread clth)
        {
            clients.Remove(clth);
            doctor = new DoctorThread(client, this);
            Thread thread = new Thread(new ThreadStart(doctor.run));

            thread.IsBackground = true;
            thread.Start();
        }
Exemplo n.º 2
0
        public void ChangeClientToDoctor(TcpClient client, ClientThread clth)
        {
            clients.Remove(clth);
            doctor = new DoctorThread(client, this);
            Thread thread = new Thread(new ThreadStart(doctor.run));

            thread.IsBackground = true;
            thread.Start();

            foreach (NetCommand command in backlog)
            {
                SendToDoctor(command);
                Thread.Sleep(5);
            }
        }
Exemplo n.º 3
0
 public void ChangeClientToDoctor(TcpClient client, ClientThread clth)
 {
     clients.Remove(clth);
     doctor = new DoctorThread(client, this);
     Thread thread = new Thread(new ThreadStart(doctor.run));
     thread.IsBackground = true;
     thread.Start();
 }
Exemplo n.º 4
0
        public void ChangeClientToDoctor(TcpClient client, ClientThread clth)
        {
            clients.Remove(clth);
            doctor = new DoctorThread(client, this);
            Thread thread = new Thread(new ThreadStart(doctor.run));
            thread.IsBackground = true;
            thread.Start();

            foreach(NetCommand command in backlog)
            {
                SendToDoctor(command);
                Thread.Sleep(5);
            }
        }