protected virtual void OnInfo(String info_str) { if (this.Info == null) { return; } NetErr err = new NetErr(info_str); this.Info(this, err); }
protected virtual void OnConnectFailed(Exception e, System.EventArgs eventArgs) { if (this.ConnectFailed == null) { return; } NetErr err = new NetErr("error" + e.Message); this.ConnectFailed(this, err); }
protected virtual void OnError(String err_str) { if (this.Error == null) { return; } NetErr err = new NetErr(err_str); this.Error(this, err); }