void MMsgRoutingCreateGroupReply::Unpack(void) { WTRACE("MMsgRoutingCreateGroupReply::Unpack"); RoutingServerMessage::Unpack(); if (GetServiceType() != WONMsg::MiniRoutingServer || GetMessageType() != WONMsg::RoutingCreateGroupReply) { WDBG_AH("MMsgRoutingCreateGroupReply::Unpack Not a RoutingCreateGroupReply message!"); throw WONMsg::BadMsgException(*this, __LINE__, __FILE__, "Not a RoutingCreateGroupReply message."); } WDBG_LL("MMsgRoutingCreateGroupReply::Unpack Reading message data"); mStatus = ReadShort(); mGroupId = (mStatus == WONMsg::StatusCommon_Success) ? ReadGroupId() : 0; }
void MMsgRoutingRemoveFromGroup::Unpack(void) { WTRACE("MMsgRoutingRemoveFromGroup::Unpack"); RoutingServerMessage::Unpack(); if (GetServiceType() != WONMsg::MiniRoutingServer || GetMessageType() != WONMsg::RoutingRemoveFromGroup) { WDBG_AH("MMsgRoutingRemoveFromGroup::Unpack Not a RoutingRemoveFromGroup message!"); throw WONMsg::BadMsgException(*this, __LINE__, __FILE__, "Not a RoutingRemoveFromGroup message."); } WDBG_LL("MMsgRoutingRemoveFromGroup::Unpack Reading message data"); // read in group id mGroupId = ReadGroupId(); // read in client id mClientId = ReadClientId(); }