本文整理汇总了C++中ObjectPrx::ice_compress方法的典型用法代码示例。如果您正苦于以下问题:C++ ObjectPrx::ice_compress方法的具体用法?C++ ObjectPrx::ice_compress怎么用?C++ ObjectPrx::ice_compress使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ObjectPrx
的用法示例。
在下文中一共展示了ObjectPrx::ice_compress方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: if
//.........这里部分代码省略.........
case 'O':
{
if(_requestQueue)
{
proxy = proxy->ice_batchOneway();
}
else
{
proxy = proxy->ice_oneway();
}
break;
}
case 'D':
{
if(_requestQueue)
{
proxy = proxy->ice_batchDatagram();
}
else
{
proxy = proxy->ice_datagram();
}
break;
}
case 's':
{
proxy = proxy->ice_secure(true);
break;
}
case 'z':
{
proxy = proxy->ice_compress(true);
break;
}
default:
{
Warning out(_instance->logger());
out << "unknown forward option `" << option << "'";
break;
}
}
}
}
if(_requestTraceLevel >= 1)
{
Trace out(_instance->logger(), "Glacier2");
if(_reverseConnection)
{
out << "reverse ";
}
out << "routing";
if(_requestQueue)
{
out << " (buffered)";
}
else
{
out << " (not buffered)";
}
if(_reverseConnection)
{
out << "\nidentity = " << _instance->communicator()->identityToString(proxy->ice_getIdentity());
}
else
{
out << "\nproxy = " << _instance->communicator()->proxyToString(proxy);
}
out << "\noperation = " << current.operation;
out << "\ncontext = ";
Context::const_iterator q = current.ctx.begin();
while(q != current.ctx.end())
{
out << q->first << '/' << q->second;
if(++q != current.ctx.end())
{
out << ", ";
}
}
}
if(_requestQueue)
{
//
// If we are in buffered mode, we create a new request and add
// it to the request queue. If the request is twoway, we use
// AMI.
//
bool override;
try
{
override = _requestQueue->addRequest(new Request(proxy, inParams, current, _forwardContext, _context,
amdCB));
}
catch(const ObjectNotExistException& ex)