Esempio n. 1
0
 public void StartGetRequests()
 {
     if ((threadGetRequests == null) || (!threadGetRequests.IsAlive))
     {
         RequestSender    = new Udp_Sender();
         RequestsReceiver = new Udp_Receiver(Defines.portGetRequests);
         threadGetRequests.Start();
     }
 }
 public ReceiveVideo(PictureBox pb_Video, AutoResetEvent nextEventThread, AutoResetEvent thisEventThread)
 {
     udp_Receiver         = new Udp_Receiver(Defines.startPortsUsers);
     udp_Receiver.Timeout = Defines.ReceiveTimeout;
     listUsers            = new List <InfoReceiveUser>();
     this.pb_Video        = pb_Video;
     threadReceiveVideo   = new Thread(ReseiveDataOfImages);
     InitialiseQueues();
     this.nextEventThread = nextEventThread;
     this.thisEventThread = thisEventThread;
 }