本文整理汇总了C++中nlnet::CMessage::serialCont方法的典型用法代码示例。如果您正苦于以下问题:C++ CMessage::serialCont方法的具体用法?C++ CMessage::serialCont怎么用?C++ CMessage::serialCont使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类nlnet::CMessage
的用法示例。
在下文中一共展示了CMessage::serialCont方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: cbReleaseRange
void cbReleaseRange( NLNET::CMessage& msgin, const std::string &serviceName, NLNET::TServiceId mirrorServiceId )
{
vector<string> datasetNames;
NLNET::TServiceId declaratorServiceId;
msgin.serialCont( datasetNames );
msgin.serial( declaratorServiceId );
RMMInstance->releaseRanges( datasetNames, declaratorServiceId, mirrorServiceId );
}
示例2:
/*
* Flush client messages, when they are acknowledged by the PDS
*/
void cbFlushAckUpdates(NLNET::CMessage& msgin, const std::string &serviceName, TServiceId serviceId)
{
uint32 databaseId;
msgin.serial(databaseId);
vector<uint32> ack;
msgin.serialCont(ack);
CPDSLib* lib = CPDSLib::getLib(databaseId);
if (lib != NULL)
lib->flushAcknowledged(ack);
}
示例3: cbGetRange
void cbGetRange( NLNET::CMessage& msgin, const std::string &serviceName, NLNET::TServiceId mirrorServiceId )
{
if ( Pause )
{
nlwarning( "A service is getting a range while the shard is paused" );
beep( 880, 150 );
beep( 660, 150 );
beep( 880, 150 );
}
vector<string> datasetNames;
NLNET::TServiceId declaratorServiceId;
sint32 maxNbEntities;
uint8 entityTypeId;
msgin.serialCont( datasetNames );
msgin.serial( declaratorServiceId );
msgin.serial( maxNbEntities );
msgin.serial( entityTypeId );
RMMInstance->getRange( datasetNames, maxNbEntities, declaratorServiceId, mirrorServiceId, entityTypeId );
}