ping added

This commit is contained in:
Max-Wilhelm Bruker 2009-04-15 21:43:12 +02:00
parent 99ff7fd15f
commit 8680bce5fc
5 changed files with 16 additions and 2 deletions

View file

@ -34,6 +34,7 @@ void Client::checkTimeout()
return;
}
}
ping();
}
void Client::slotSocketError(QAbstractSocket::SocketError error)
@ -205,6 +206,11 @@ void Client::disconnectFromServer()
socket->close();
}
int Client::ping()
{
return cmd("ping");
}
int Client::listGames()
{
return cmd("list_games");