Exemple #1
0
 public async void StartListeningAsync()
 {
     listener.Start();
     Console.WriteLine("Server started.");
     while (!cancellation.IsCancellationRequested)
     {
         ManageClientAsync(await listener.AcceptTcpClientAsync());
     }
     streamManager.Stop();
 }
Exemple #2
0
        public void StopStream(string streamType)
        {
            _streamManager.Stop();

            Clients.All.log("Message from Server: Stream stopped");
        }