mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
ping added
This commit is contained in:
parent
99ff7fd15f
commit
8680bce5fc
5 changed files with 16 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue