public void Start()
        {
            logger.Debug("RtpUdpSender::Start()");
            try
            {
                running = true;

                logger.Info("Server started " + RemoteEndpoint.ToString());


                Task.Run(() =>
                {
                    while (running)
                    {
                        //if (!syncEvent.WaitOne(1000))
                        //{
                        //    continue;
                        //}

                        syncEvent.WaitOne(1000);

                        SendPackets();

                        if (!running)
                        {
                            break;
                        }
                    }
                });
            }
            catch (Exception ex)
            {
                logger.Error(ex);
                Close();
            }
        }
Exemple #2
0
 public override string ToString()
 {
     return("(StompServerClient [" + RemoteEndpoint.ToString() + "] " + _guid + ")");
 }
Exemple #3
0
 public override string ToString()
 {
     return("(Client [" + RemoteEndpoint.ToString() + "])");
 }
Exemple #4
0
 public override string ToString()
 {
     return(RemoteEndpoint.ToString());
 }