本文整理汇总了C++中TAO_ServerRequest::incoming方法的典型用法代码示例。如果您正苦于以下问题:C++ TAO_ServerRequest::incoming方法的具体用法?C++ TAO_ServerRequest::incoming怎么用?C++ TAO_ServerRequest::incoming使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TAO_ServerRequest
的用法示例。
在下文中一共展示了TAO_ServerRequest::incoming方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: while
void
TAO_Portable_Group_Map::dispatch (PortableGroup::TagGroupTaggedComponent* group_id,
TAO_ORB_Core *orb_core,
TAO_ServerRequest &request,
CORBA::Object_out forward_to)
{
ACE_READ_GUARD (TAO_SYNCH_RW_MUTEX,
guard,
this->lock_);
// Look up the GroupId.
Map_Entry *entry = 0;
if (this->map_.find (group_id, entry) == 0)
{
// Save the read pointer in the message block since
// every time we dispatch the request, we need to
// reset it so that the request demarshals correctly.
TAO_InputCDR *tao_in = request.incoming ();
ACE_Message_Block *msgblk =
const_cast<ACE_Message_Block *> (tao_in->start ());
char *read_ptr = msgblk->rd_ptr ();
// Iterate through the list of ObjectKeys.
while (entry)
{
orb_core->adapter_registry ().dispatch (entry->key,
request,
forward_to);
// Reset the read pointer in the message block.
msgblk->rd_ptr (read_ptr);
entry = entry->next;
}
}
}