/// <summary> /// 网络关闭 /// </summary> public void Clear() { OnDisConnected(); OnDisReciveEvent?.Invoke(); skt.Close(); skt = null; }
/// <summary> /// 网络关闭 /// </summary> protected void Clear() { OnDisRecive(); OnDisReciveEvent?.Invoke(); mSocket.Close(); mSocket = null; }
protected virtual void OnDisRecive() { OnDisReciveEvent?.Invoke(); ("关闭了一个连接:").KLog(); }