/// <summary> /// 停止服务连接 /// </summary> public void StopConection() { if (checkNet != null) { checkNet.Stop(); } isSendData = false; strList.Clear(); client.StopConnection(); Disposed(); }
/// <summary> /// 断开连接 /// </summary> /// <returns>成功返回true,否则失败</returns> public bool DisConection() { return(client.StopConnection()); }