/// <summary> /// 丢失链接 /// </summary> void OnDisconnected(DisType dis, string msg) { Close(); //关掉客户端链接 int protocal = dis == DisType.EXCEPTION ? Protocal.EXCEPTION : Protocal.DISCONNECT; NetworkManager.AddEvent(protocal, null); }
//тип расцепителя private void pbxClearDisType_Click(object sender, EventArgs e) { dgvcCmbDisTyp.DefaultCellStyle.BackColor = System.Drawing.Color.White; if (disCurrent == null) { bs_disTCbr.DataSource = EquipServices.GetAllDisType(); } disType = null; cboCbrDisType.ResetText(); if (disModel == null) { if (manufacturer == null) { bs_disMCbr.DataSource = EquipServices.GetAllDisModel(); cboCbrDisModel.ResetText(); } else { bs_disMCbr.DataSource = EquipServices.GetAllDisModel(manufacturer.Id); cboCbrDisModel.ResetText(); } } SearchCbr(null); }
/* [ Очистить все ] */ private void btnCbrClear_Click(object sender, EventArgs e) { CbrDataSourceLoad(); cboCbrDisModel.Enabled = false; foreach (DataGridViewColumn column in dataGridViewCbrSearch.Columns) { column.DefaultCellStyle.BackColor = Color.White; } manufacturer = null; disCurrent = null; cbCurrent = null; icuValue = null; disType = null; disModel = null; SearchCbr(null); foreach (Control ctr in gbxFilterCbr.Controls) { if (ctr.GetType() == typeof(ComboBox)) { ctr.ResetText(); } } }
private void OnDisconnected(DisType dis, string msg) { this.mConnectState = false; int protocal = (dis == DisType.Exception) ? 102 : 103; ByteBuffer buffer = new ByteBuffer(Encoding.Default.GetBytes(msg)); DispatchMessage(protocal, buffer); }
/// <summary> /// 丢失链接 /// </summary> void OnDisconnected(DisType dis, string msg) { Close(); //关掉客户端链接 int protocal = dis == DisType.Exception ? Protocal.Exception : Protocal.Disconnect; NetworkManager.AddEvent(protocal.ToString(), new LuaByteBuffer(new byte[] { })); Debug.LogWarning("Connection was closed by the server:>" + msg + " Distype:>" + dis); }
/// <summary> /// 丢失链接 /// </summary> void OnDisconnected(DisType dis, string msg) { Close(); //关掉客户端链接 int protocal = dis == DisType.Exception ? Protocal.Exception : Protocal.Disconnect; byte[] buffer = new byte[20]; NetworkManager.AddEvent(protocal, buffer); Debug.LogError("Connection was closed by the server:>" + msg + " Distype:>" + dis); }
/// <summary> /// 丢失链接 /// </summary> void OnDisconnected(DisType dis, string msg) { Close(); //关掉客户端链接 int protocol = dis == DisType.Exception ? Protocol.Exception : Protocol.Disconnect; ByteBuffer buffer = new ByteBuffer(); buffer.WriteShort((short)protocol); NetworkManager.AddEvent(protocol, buffer); }
/// <summary> /// 丢失链接 /// </summary> void OnDisconnected(DisType dis, string msg) { this.host = ""; this.port = -1; Close(); //关掉客户端链接 //int protocal = dis == DisType.Exception ? Protocal.Exception : Protocal.Disconnect; //Odin.Log.Error("Connection was closed by the server:>" + msg + " Distype:>" + dis); }
/// <summary> /// 丢失链接 /// </summary> void OnDisconnected(DisType dis, string msg) { Close(); //关掉客户端链接 int protocal = dis == DisType.Exception ? Protocal.Exception : Protocal.Disconnect; //ByteBuffer buffer = new ByteBuffer(); //buffer.WriteShort((ushort) protocal); NetworkManager.AddMessageEvent((ushort)protocal, null); Debug.LogError("Connection was closed by the server:>" + msg + " Distype:>" + dis); }
/// <summary> /// 丢失链接 /// </summary> void OnDisconnected(DisType dis, string msg) { int protocal = dis == DisType.Exception ? Protocal.Exception : Protocal.Disconnect; // ByteBuffer buffer = new ByteBuffer(); // buffer.WriteShort((ushort)protocal); // AddEvent(protocal, buffer); AddEvent(protocal, ""); Debug.LogWarning("Connection was closed by the server:>" + msg + " Distype:>" + dis); }
/// <summary> /// 丢失链接 /// </summary> private void OnDisconnected(DisType dis, string msg) { Close(); //关掉客户端链接 var protocal = dis == DisType.Exception ? Protocal.Exception : Protocal.Disconnect; var buffer = new ByteBuffer(); buffer.WriteInt(protocal); NetworkManager.AddEvent(protocal, string.Empty); Util.LogError("Connection was closed by the server:>" + msg + " Distype:>" + dis); }
private void OnDisconnected(DisType dis, string msg) { //关掉客户端链接 Close(); int protocal = dis == DisType.Exception ? Protocal.Exception : Protocal.Disconnect; ByteBuffer buffer = new ByteBuffer(); buffer.WriteShort((ushort)protocal); //NetworkManager.AddEvent(protocal, buffer); //Debug.LogError("Connection was closed by the server:>" + msg + " Distype:>" + dis); }
/// <summary> /// 丢失链接 /// </summary> void OnDisconnected(DisType dis, string msg) { Close(); //关掉客户端链接 int protocal = dis == DisType.Exception ? Protocal.Exception : Protocal.Disconnect; ByteBuffer buffer = new ByteBuffer(); buffer.WriteShort((ushort)protocal); // NetworkManager.AddEvent(protocal, buffer); m_socketdata.status_data.Enqueue((int)dis); Debug.Log("Connection was closed by the server:>" + msg + " Distype:>" + dis); }
/// <summary> /// 丢失链接 /// </summary> public void Disconnected(DisType dis, string msg) { bool holdConnected = (client != null); Close(); if (holdConnected) { lock (mRecvDatas){ mRecvDatas.Clear(); } m_NetMgr.OnDisConnected(net_id); } }
private void OnDisconnected(DisType dis, string msg) { this.Close(); int num = (dis != DisType.Exception) ? 103 : 102; ByteBuffer byteBuffer = new ByteBuffer(); byteBuffer.WriteShort((ushort)num); NetworkManager.AddEvent(num, byteBuffer); Debug.LogError(string.Concat(new object[] { "Connection was closed by the server:>", msg, 'Distype:>", dis }));
//тип расцепителя private void cboCbrDisType_SelectionChangeCommitted(object sender, EventArgs e) { disType = cboCbrDisType.SelectedItem as DisType; if (disType != null) { SearchCbr(dgvcCmbDisTyp); } if (manufacturer != null) { bs_disMCbr.DataSource = EquipServices.GetAllDisModel(manufacturer.Id, disType.Id); cboCbrDisModel.ResetText(); } }
private void OnDisconnected(DisType dis, string msg) { this.Close(); int @event = (dis != DisType.Exception) ? 103 : 102; NetworkManager.AddEvent(@event, new LuaByteBuffer(Encoding.Default.GetBytes(msg))); Debug.LogWarning(string.Concat(new object[] { "Connection was closed by the server:>", msg, " Distype:>", dis })); }
/// <summary> /// 丢失链接 /// </summary> private void OnDisconnected(DisType dis, string msg = null) { Close(); //关掉客户端链接 if (dis == DisType.None) { } else if (dis == DisType.Exception) { } else { } DebugHelper.LogError(string.Format("DisType:> {0} Msg: {1}", dis, msg)); }
/// <summary> /// Calculating the distance between two face features. /// </summary> /// <param name="faceFeature1">The first input feature</param> /// <param name="faceFeature2">The second input feature of the same size and the same type as <paramref name="faceFeature1"/></param> /// <param name="disType">Defining the similarity with optional values</param> /// <returns>The distance between two face features.</returns> public double Match( IInputArray faceFeature1, IInputArray faceFeature2, DisType disType = DisType.Cosine) { using (InputArray iaFaceFeature1 = faceFeature1.GetInputArray()) using (InputArray iaFaceFeature2 = faceFeature2.GetInputArray()) { return(CvInvoke.cveFaceRecognizerSFMatch( _ptr, iaFaceFeature1, iaFaceFeature2, disType )); } }
/// <summary> /// 丢失链接 /// </summary> void OnDisconnected(DisType dis, string msg) { sockteClientState = netState.DisConnected; Close(); //关掉客户端链接 int protocal = dis == DisType.Exception ? Protocal.Exception : Protocal.Disconnect; ByteBuffer buffer = new ByteBuffer(); buffer.WriteShort((ushort)protocal); lock (NetworkManager.sEvents) { NetworkManager.AddEvent(protocal, buffer); } //Debug.LogError("Connection was closed by the server:>" + msg + " Distype:>" + dis); }
/// 丢失链接 private void OnDisconnected(DisType dis, string msg) { //bool connecting = (null != m_client && m_client.Connected);//记下是否已经连接中的 Close(); //关掉客户端链接 if (dis == DisType.Disconnect) { //*断开连接网络广播 Debug.Log("@net 正常主动断线"); } else if (dis == DisType.ConnectTimeOut) { Debug.Log("@net 连接服务器超时"); } else if (dis == DisType.Exception) { Debug.LogError("@net 异常断开服务器:> " + msg + " Distype:>" + dis); } }
/// <summary> /// 丢失链接 /// </summary> void OnDisconnected(DisType dis, string msg) { if (client != null) { Close(); //关掉客户端链接 int protocal = dis == DisType.Exception ? Protocal.Exception : Protocal.Disconnect; ByteBuffer buffer = new ByteBuffer(); buffer.WriteShort((ushort)protocal); ConnectObserver.DispatchEvent(protocal, buffer); if (ConnectObserver.inReconnect) { ConnectObserver.inReconnect = false; } ConsoleView.LogWarning(string.Format("Connection was closed:>{0} Distype:>{1}", msg, dis)); } }
/// <summary> /// 丢失链接 /// </summary> void OnDisconnected(DisType dis, string msg) { Close(); //关掉客户端链接 int protocal = 0; ByteBuffer buffer = new ByteBuffer(); if (dis == DisType.Disconnect) { protocal = Protocal.Disconnect; } else { protocal = Protocal.Exception; buffer.WriteString("Connection was closed by the server:>" + msg + ", Distype:>" + dis); } NetWorkManager.AddEvent(protocal, buffer); }
private void OnDisconnected(DisType dis, string msg) { this.Close(); int num = (dis != DisType.Exception) ? 103 : 102; ByteBuffer byteBuffer = new ByteBuffer(); byteBuffer.WriteShort((ushort)num); NetworkManager.AddEvent(num, byteBuffer); if (AppFacade.Instance.GetManager <NetworkManager>("NetworkManager").inReconnect) { AppFacade.Instance.GetManager <NetworkManager>("NetworkManager").inReconnect = false; } Debug.LogWarning(string.Concat(new object[] { "Connection was closed:>", msg, " Distype:>", dis })); }
/// <summary> /// 丢失链接 /// </summary> private void OnDisconnected(DisType dis, string msg = null) { Close(); //关掉客户端链接 if (dis == DisType.None) { UIDialogMgr.Instance.ShowDialog(10014, delegate(GameObject go) { Application.Quit(); }); } else if (dis == DisType.Exception) { UIDialogMgr.Instance.ShowDialog(10017, delegate(GameObject go) { Application.Quit(); }); } else { UIDialogMgr.Instance.ShowDialog(10016, delegate(GameObject go) { NetReceptionMgr.Instance.ReConnect(); }, delegate(GameObject go) { Application.Quit(); }); //retries = 0; //DialogController.Instance.ShowDialog(10016, null, null, delegate (Hashtable ha) { NetReceptionMgr.Instance.ReConnect(); }, delegate (Hashtable ha) { Application.Quit(); }); } DebugHelper.LogError(string.Format("DisType:> {0} Msg: {1}", dis, msg)); }
void OnDisconnected(DisType dis, string msg) { Close(); //关掉客户端链接 Debug.Log("networkmanager on disconnect!" + msg + " trace:" + new System.Diagnostics.StackTrace().ToString()); AddEvent(onDisConnectCallBack, null); }
/// <summary> /// 丢失链接 /// </summary> void OnDisconnected(DisType dis, string msg) { Util.LogForNet("服务器关掉了!"); Debug.Log("!Connection was closed by the server:>" + msg + " Distype:>" + dis); Close(); //关掉客户端链接 }
/// <summary> /// 丢失链接 /// </summary> void OnDisconnected(DisType dis, string msg) { Debug.Log("OnDisconnected" + msg); Close(); //关掉客户端链接 NetManager.Instance.OnDisConnect(); }
/// <summary> /// 丢失链接 /// </summary> void OnDisconnected(DisType dis, string msg) { Close(); //关掉客户端链接 int protocal = dis == DisType.Exception ? Protocal.Exception : Protocal.Disconnect; ByteBuffer buffer = new ByteBuffer(); buffer.WriteShort((ushort)protocal); //NetworkManager.AddEvent(protocal, buffer); //TODO: notify Disconnected Debug.LogError("Connection was closed by the server:>" + msg + " Distype:>" + dis); }
/// <summary> /// 丢失链接 /// </summary> void OnDisconnected(DisType dis, string msg) { Close(); //关掉客户端链接 NetManager.Instance.OnDisConnect(); }
/// <summary> /// 丢失链接 /// </summary> void OnDisconnected(DisType dis, string msg) { LogSystem.instance.Log(LogCategory.GameEngine, "OnDisconnected" + msg); LogSystem.instance.Log(LogCategory.GameEngine, "======断开连接========"); Close(); //关掉客户端链接 }