Implementing packet validation for new packets and client side game removal for admin players.

This commit is contained in:
lotodore
2013-02-24 23:04:02 +01:00
parent 8740c3fb7a
commit 19f27a890c
9 changed files with 54 additions and 4 deletions
+10
View File
@@ -376,6 +376,16 @@ ClientThread::SendReportGameName(unsigned reportedGameId)
m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet));
}
void
ClientThread::SendAdminRemoveGame(unsigned removeGameId)
{
boost::shared_ptr<NetPacket> packet(new NetPacket);
packet->GetMsg()->set_messagetype(PokerTHMessage::Type_AdminRemoveGameMessage);
AdminRemoveGameMessage *netRemove = packet->GetMsg()->mutable_adminremovegamemessage();
netRemove->set_removegameid(removeGameId);
m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet));
}
void
ClientThread::StartAsyncRead()
{