コード例 #1
0
        public void Stop()
        {
            foreach (var client in clients.Keys)
            {
                client.Dispose();
            }
            clients = new ConcurrentDictionary <TcpClient, NewFrameEventHandler>();

            source.Stop();

            listener.Stop();
            listen = false;
        }
コード例 #2
0
ファイル: WebcamInput.cs プロジェクト: lulzzz/ProtingaVizija
 /// <summary>
 /// Disables the input of the webcam
 /// </summary>
 public static void DisableWebcam()
 {
     try
     {
         source.Stop();
         processor.Complete();
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         throw;
     }
 }
コード例 #3
0
        public void Stop()
        {
            foreach (var client in clients.Keys)
            {
                client.Dispose();
            }
            clients = new ConcurrentDictionary <TcpClient, bool>();

            source.Stop();
            source.NewFrame -= SendNewFrameToClients;

            listener.Stop();
            listen = false;
        }