Implementing packet validation for new packets and client side game removal for admin players.
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user