void* MMsgRoutingModifyDataObject::Pack(void) { WTRACE("MMsgRoutingModifyDataObject::Pack"); SetServiceType(WONMsg::MiniRoutingServer); SetMessageType(WONMsg::RoutingModifyDataObject); RoutingServerMessage::Pack(); WDBG_LL("MMsgRoutingModifyDataObject::Pack Appending message data"); // append the client/group id AppendClientOrGroupId(mLinkId); // append the datatype, preceded by datatype length AppendByte(mDataType.size()); AppendBytes(mDataType.size(), mDataType.data()); // append the offset AppendShort(mOffset); // append the IsInsert flag AppendBool(mIsInsert); // append the data length followed by the data itself AppendShort(mData.size()); AppendBytes(mData.size(), mData.data()); return GetDataPtr(); }
void* MMsgRoutingUnsubscribeDataObject::Pack(void) { WTRACE("MMsgRoutingUnsubscribeDataObject::Pack"); SetServiceType(WONMsg::MiniRoutingServer); SetMessageType(WONMsg::RoutingUnsubscribeDataObject); RoutingServerMessage::Pack(); WDBG_LL("MMsgRoutingUnsubscribeDataObject::Pack Appending message data"); // append the client/group id AppendClientOrGroupId(mLinkId); // append the datatype length followed by the datatype itself AppendByte(mDataType.size()); AppendBytes(mDataType.size(), mDataType.data()); // append the flags unsigned char aFlags = 0; if (mExactOrRecursiveFlag) aFlags |= 0x01; if (mGroupOrMembersFlag) aFlags |= 0x02; AppendByte(aFlags); return GetDataPtr(); }
void* MMsgRoutingDeleteDataObject::Pack(void) { WTRACE("MMsgRoutingDeleteDataObject::Pack"); SetServiceType(WONMsg::MiniRoutingServer); SetMessageType(WONMsg::RoutingDeleteDataObject); RoutingServerMessage::Pack(); WDBG_LL("MMsgRoutingDeleteDataObject::Pack Appending message data"); // append the client/group id AppendClientOrGroupId(mLinkId); // append the datatype length followed by the datatype itself AppendByte(mDataType.size()); AppendBytes(mDataType.size(), mDataType.data()); return GetDataPtr(); }