public virtual void Send(SipMessage packet) { DebugWriter.WriteSendPacket(packet); try { TcpHelper.AsyncSend(this.socket, packet, this.SendCallback); } catch (SocketException ex) { Log.WriteLog(LogFile.Error, ex.ToString()); ErrManager.RaiseError(new FxErrArgs(ErrLevel.Fatal, ex)); } }
public override void Send(SipMessage packet) { try { TcpHelper.AsyncSend(this.socket, packet, this.SendCallback); } catch (SocketException ex) { Log.WriteLog(LogFile.Debug, "ChatConnection Send异常:" + ex.ToString()); //not throw fata error,keep main thread not exit ErrManager.RaiseError(new FxErrArgs(ErrLevel.Critical, ex)); } }