direct_supplier.h
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 60 行
H
60 行
/* -*- C++ -*- */
/**
* @file Direct_Supplier.h
*
* Direct_Supplier.h,v 1.4 2003/07/21 23:51:33 dhinton Exp
*
* @author Pradeep Gore <pradeep@oomworks.com>
*
*
*/
#ifndef TAO_Notify_Tests_DIRECT_SUPPLIER_H
#define TAO_Notify_Tests_DIRECT_SUPPLIER_H
#include /**/ "ace/pre.h"
#include "notify_test_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "Periodic_Supplier.h"
/**
* @class TAO_Notify_Tests_Direct_Supplier
*
* @brief Send Directly to a consumer.
*
*/
class TAO_NOTIFY_TEST_Export TAO_Notify_Tests_Direct_Supplier : public TAO_Notify_Tests_Periodic_Supplier
{
public:
/// Constuctor
TAO_Notify_Tests_Direct_Supplier (ACE_CString& target);
/// Destructor
~TAO_Notify_Tests_Direct_Supplier ();
/// Connect using options parsed and set initial QoS.
virtual void connect (ACE_ENV_SINGLE_ARG_DECL);
// Send one event. Bypass sending to the Notify and send directly to taget consumer.
virtual void send_event (const CosNotification::StructuredEvent& event
ACE_ENV_ARG_DECL);
protected:
/// Target object.
ACE_CString target_;
/// This object is resolved in the connect method.
CosNotifyComm::StructuredPushConsumer_var target_object_;
};
#if defined (__ACE_INLINE__)
#include "Direct_Supplier.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
#endif /* TAO_Notify_Tests_DIRECT_SUPPLIER_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?