コード例 #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();
        }
コード例 #2
0
ファイル: Server.cs プロジェクト: kennyboy55/ErgometerIPR
        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);
            }
        }
コード例 #3
0
ファイル: Server.cs プロジェクト: Aaldert/IP2
 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();
 }
コード例 #4
0
ファイル: Server.cs プロジェクト: kennyboy55/ErgometerIPR
        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);
            }
        }