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(); } }
public override string ToString() { return("(StompServerClient [" + RemoteEndpoint.ToString() + "] " + _guid + ")"); }
public override string ToString() { return("(Client [" + RemoteEndpoint.ToString() + "])"); }
public override string ToString() { return(RemoteEndpoint.ToString()); }