notifier_server.h
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 72 行
H
72 行
/* -*- C++ -*- */
// Notifier_Server.h,v 1.6 2002/01/29 20:20:40 okellogg Exp
// ============================================================================
//
// = LIBRARY
// EventComm
//
// = FILENAME
// Notifier_Server.h
//
// = AUTHOR
// Pradeep Gore <pradeep@cs.wustl.edu>
//
// ============================================================================
#ifndef _NOTIFIER_SERVER_H
#define _NOTIFIER_SERVER_H
#include "Event_Comm_i.h"
#include "tao/PortableServer/ORB_Manager.h"
#include "orbsvcs/CosNamingS.h"
#include "orbsvcs/Naming/Naming_Utils.h"
class Notifier_Server
{
// = TITLE
// The Notifier Server that handles CORBA operations from
// Consumers and Suppliers.
public:
// = Initialization and termination methods.
Notifier_Server (void);
// Constructor.
~Notifier_Server (void);
// Destructor.
int init (int argc, char *argv[] ACE_ENV_ARG_DECL);
// Initialize the Server state.
int run (ACE_ENV_SINGLE_ARG_DECL);
// Run the orb.
int close (void);
// Close the naming service.
ACE_Reactor *reactor(void);
// Reactor accessor.
private:
int init_naming_service (ACE_ENV_SINGLE_ARG_DECL);
// Initialises the name server and registers the Notifier server
// object name with the name server.
TAO_ORB_Manager orb_manager_;
// The ORB manager.
Notifier_i servant_;
// Servant for the Notifier interface.
CosNaming::NamingContext_var naming_context_;
// Naming context for the naming service.
TAO_Naming_Server naming_server_;
// An instance of the name server, wherein the naming context
// containing the factory of objects will be registered.
};
#define NOTIFIER_BIND_NAME "Notifier"
#endif /* _NOTIFIER_SERVER_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?