Fixing some ASN.1 related bugs. Playing a game works now, but there is still an issue when the lobby is started after the game.

This commit is contained in:
lotodore
2009-08-03 20:42:32 +00:00
parent 82ebd318d0
commit 9a8f2ae01a
6 changed files with 32 additions and 13 deletions
+16
View File
@@ -87,6 +87,22 @@ NetPacket::IsClientActivity() const
return retVal;
}
static int
net_packet_print_to_string(const void *buffer, size_t size, void *packetStr)
{
string *tmpString = (string *)packetStr;
*tmpString += string((const char *)buffer, size);
return 0;
}
string
NetPacket::ToString() const
{
string packetString;
xer_encode(&asn_DEF_PokerTHMessage, m_msg, XER_F_BASIC, &net_packet_print_to_string, &packetString);
return packetString;
}
void
NetPacket::SetGameData(const GameData &inData, NetGameInfo_t *outData)
{