supplier.h
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 65 行
H
65 行
/* -*- C++ -*- */
// Supplier.h,v 1.3 2002/01/29 20:20:46 okellogg Exp
// ============================================================================
//
// = FILENAME
// Supplier.h
//
// = AUTHOR
// Pradeep Gore <pradeep@cs.wustl.edu>
//
// = DESCRIPTION
// Defines a simple Push Supplier.
//
// ============================================================================
#ifndef COSECSUPPLIER_H_
#define COSECSUPPLIER_H_
#include "orbsvcs/CosEventCommC.h"
#include "orbsvcs/CosEventChannelAdminC.h"
#include "orbsvcs/CosEventCommS.h"
#include "orbsvcs/CosEventChannelAdminS.h"
class Supplier : public POA_CosEventComm::PushSupplier
{
// = TITLE
// Supplier
//
// = DESCRIPTION
// The Supplier is a simple Push Supplier that connects to
// the CosEC and sends events to it.
public:
void open (CosEventChannelAdmin::EventChannel_ptr event_channel
ACE_ENV_ARG_DECL);
// This method connects the supplier to the EC.
void close (ACE_ENV_SINGLE_ARG_DECL);
// Disconnect from the EC.
void connect (ACE_ENV_SINGLE_ARG_DECL);
void disconnect (ACE_ENV_SINGLE_ARG_DECL);
// Disconnect from the EC, but do not forget about it or close it.
void send_event (const CORBA::Any &data
ACE_ENV_ARG_DECL);
// Send one event.
virtual void disconnect_push_supplier (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((
CORBA::SystemException
));
// The POA_CosEventComm::PushSupplier method.
private:
CosEventChannelAdmin::ProxyPushConsumer_var consumer_proxy_;
// We talk to the EC using this proxy.
CosEventChannelAdmin::SupplierAdmin_var supplier_admin_;
// We talk to the EC using this proxy.
};
#endif /* COSECSUPPLIER_H_ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?