Preparing "reportGameName" network message.

This commit is contained in:
lotodore
2012-03-31 20:14:11 +00:00
parent 7ff145a66a
commit ac0041cb8f
112 changed files with 773 additions and 365 deletions
+10
View File
@@ -385,6 +385,16 @@ ClientThread::SendReportAvatar(unsigned reportedPlayerId, const std::string &ava
}
}
void
ClientThread::SendReportGameName(unsigned reportedGameId)
{
boost::shared_ptr<NetPacket> packet(new NetPacket(NetPacket::Alloc));
packet->GetMsg()->present = PokerTHMessage_PR_reportGameMessage;
ReportGameMessage_t *netReport = &packet->GetMsg()->choice.reportGameMessage;
netReport->reportedGameId = reportedGameId;
m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet));
}
void
ClientThread::StartAsyncRead()
{