⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dump_restore.h

📁 ACE自适配通信环境(ADAPTIVE Communication Environment)是可以自由使用、开放源码的面向对象(OO)框架(Framework)
💻 H
字号:
// -*- C++ -*-//// Dump_Restore.h,v 4.7 2004/08/27 17:38:58 shuston Exp#include "ace/Event_Handler.h"#if !defined (ACE_LACKS_PRAGMA_ONCE)# pragma once#endif /* ACE_LACKS_PRAGMA_ONCE */#include "ace/Reactor.h"#include "ace/Naming_Context.h"#include "ace/svc_export.h"class ACE_Svc_Export Dump_Restore : public ACE_Event_Handler{public:  enum Operation_Type    {      BIND,      UNBIND,      REBIND    };  Dump_Restore (int argc, ACE_TCHAR *argv[]);  // Initialize name options and naming context  ~Dump_Restore (void);  virtual int handle_input (ACE_HANDLE handle);  // Handle user entered commands  void dump (void);private:  ACE_TCHAR hostname_[MAXHOSTNAMELEN + 1];  // Cache the hostname and port number for remote case  void display_menu (void);  // Display user menu.  int set_proc_local (void);  // Set options to use PROC_LOCAL naming context.  int set_node_local (void);  // Set options to use NODE_LOCAL naming context.  int set_host (const ACE_TCHAR *hostname,                int port);  // Set options to use NET_LOCAL naming context specifying host name  // and port number.  int quit (void);  // Gracefully exit.  int populate (Dump_Restore::Operation_Type op);  int doit (Dump_Restore::Operation_Type op,            const char *name,            const char *value,            const char *type = "");  int bind (const char *key,            const char *value,            const char *type = "");  int unbind (const char *key);  int rebind (const char *key,              const char *value,              const char *type = "");  char filename_[MAXPATHLEN + 1];  char dump_filename_[MAXPATHLEN + 1];  u_short port_;  // port server is listening on  ACE_Naming_Context *ns_context_;  // Current naming context  ACE_Naming_Context::Context_Scope_Type ns_scope_;  // Defines the scope of the naming context  FILE *infile_;  // input file  ACE_Name_Options *name_options_;  // Name Options associated with the Naming Context};

⌨️ 快捷键说明

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