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

📄 framework.cpp

📁 extremeDB s sample code,useful for you
💻 CPP
字号:
/***************************************************************** *                                                               *     * framework.cpp                                                 * *                                                               * * This file is a part of the eXtremeDB-HA Application Framework * * Copyright (c) 2001-2006 McObject LLC                          *  * All Rights Reserved                                           * ***************************************************************** * ++ *  * PROJECT:   eXtremeDB(tm) (c) 2003 McObject LLC * * SUBSYSTEM: HA support * * MODULE:    framework.cpp * * ABSTRACT:  Wrapper methods for accessing HA communication *            channels from within the C++ application * * * VERSION:   1.0 * * HISTORY: *            1.0- 1 SS     03-Oct-2003 Created it was * *****************************************************************//* * See framework_cpp.h for details */#include  <stdio.h>#include <stdlib.h>#include  "framework_cpp.h"HaInterface::HaInterface(){//  ...}MCO_RET HaInterface::AttachReplica( 				     	        const char* devname,                      const mco_connection_param_t * params,              	      const char* replica_name,  ulong timeout){    return mco_nw_attach_replica( db, devname, params, replica_name, timeout,                                  this ); // void* arg is used as a pointer to the object}MCO_RET  HaInterface::AttachMaster(                      const char* conn_string,                      const mco_connection_param_t* params,                      MCO_E_HA_REPLICA_STOP_REASON* stop_reason,                      const char*	db_name,                      mco_dictionary_h dict,                      void* mem_ptr,                      uint4 total_size,                      unsigned long timeout){      return mco_nw_attach_master( &db, conn_string, params, stop_reason, db_name,                                  dict, mem_ptr, total_size, timeout,                                  this ); // void* arg is used as a pointer to the object}MCO_RET HaInterface::Close (){    return  mco_nw_close ( this ); // void* arg is used as a pointer to the object}

⌨️ 快捷键说明

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