manager.h

来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 47 行

H
47
字号
//Manager.h,v 1.4 2002/01/29 20:21:08 okellogg Exp
#ifndef _MANAGER_H_
#define _MANAGER_H_

#include "Servant_Locator.h"

class Manager
{
  public:

  Manager (void);

  // Ctor

  int init (int argc,
            char *argv[]
            ACE_ENV_ARG_DECL);

  // Initialize the ORB, POA etc.

  int init_register_name_service (ACE_ENV_SINGLE_ARG_DECL);
  // Initialize the Name service, tegister the combined IOR with it

  int activate_servant (ACE_ENV_SINGLE_ARG_DECL);
  // Activate the servant etc.

  int make_iors_register (ACE_ENV_SINGLE_ARG_DECL_NOT_USED);

  int run (ACE_ENV_SINGLE_ARG_DECL);
  // Run the  ORB event loop..
 private:
  CORBA::ORB_var orb_;
  // Our ORB

  PortableServer::POA_var new_poa_var_;
  // The new poa that is created..

  Servant_Locator *servant_locator_;
  // Our servant locator

  PortableServer::ServantLocator_var servant_locator_var_;
  // Our servant locator var

  CORBA::Object_var new_manager_ior_;
};
#endif /*_MANAGER_H_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?