Example #1
0
        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();
            }
        }
Example #2
0
 public override string ToString()
 {
     return("(StompServerClient [" + RemoteEndpoint.ToString() + "] " + _guid + ")");
 }
Example #3
0
 public override string ToString()
 {
     return("(Client [" + RemoteEndpoint.ToString() + "])");
 }
Example #4
0
 public override string ToString()
 {
     return(RemoteEndpoint.ToString());
 }