public virtual void Connect(string ip, string port) { try { this.remoteIp = ip; this.remotePort = port; this.socket = TcpHelper.CreateSocket(ip, port); } catch (Exception ex) { ErrManager.RaiseError(new FxErrArgs(ErrLevel.Fatal, ex)); } }
public override void Connect(string ip, string port) { this.remoteIp = ip; //don't catch exception here this.socket = TcpHelper.CreateSocket(ip, port); }