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