示例#1
0
 /// <summary>
 /// 客户端与服务器端断开连接
 /// </summary>
 private void Close()
 {
     ConnHelper.CloseConnDB(mysqlConn);
     if (clientScoket != null)
     {
         clientScoket.Close();
     }
     server.RemoveClient(this);
 }
 /// <summary>
 /// 客户端与服务器端断开连接
 /// </summary>
 private void Close()
 {
     ConnHelper.CloseConnDB(mysqlConn);
     if (clientScoket != null)
     {
         clientScoket.Close();
     }
     if (room != null)
     {
         room.QuitRoom(this);
     }
     //Socket要最后关
     server.RemoveClient(this);
 }