本文整理汇总了C++中Notification::getClientID方法的典型用法代码示例。如果您正苦于以下问题:C++ Notification::getClientID方法的具体用法?C++ Notification::getClientID怎么用?C++ Notification::getClientID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Notification
的用法示例。
在下文中一共展示了Notification::getClientID方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: onDataReceived
void NegotiatorTube::onDataReceived(const UInt32 channel_id, const UInt32 read_size)
{
LOG4CPLUS_TRACE_METHOD(mLogger, __PRETTY_FUNCTION__);
UInt8 data[read_size];
bzero(data, read_size);
UInt32 receivedSize = 0;
BaseError err = iviLink::ChannelSupervisor::receiveData(channel_id, data, receivedSize,
read_size);
if (err.isNoError())
{
pugi::xml_document* doc = new pugi::xml_document();
doc->load((char*) data);
Notification * notification = new Notification(doc);
if (notification->getType() == Notification::NOTIFICATIONTTYPE_CLIENT_DISCONNECTED)
{
ProcessorsHolder::getInstance()->processRemoteClientDisconnected(
notification->getClientID());
delete notification;
}
else if (notification->getType() == Notification::NOTIFICATIONTTYPE_INVALIDATE_TIMEDOUT_REQUEST)
{
ProcessorsHolder::getInstance()->invalidateRemoteTimedOutRequest(
notification->getClientID(), notification->getRequestID());
delete notification;
}
else
{
// created notification is deleted in processTubeNotification
ProcessorsHolder::getInstance()->processTubeNotification(notification, this);
}
}
else
{
LOG4CPLUS_WARN(mLogger, "Could not receive data: " + static_cast<std::string>(err));
}
}