Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

xmog_client_connect.h

00001 /*
00002  * Copyright 1999-2006 by Codemesh, Inc.  ALL RIGHTS RESERVED.
00003  */
00004 
00005 #ifndef xmog_client_connect_inc
00006 #define xmog_client_connect_inc
00007 
00008 
00009 #include "xmog.h"
00010 #include "ace/DLL_Manager.h"
00011 
00012 
00013 #if (XMOG_IMPLEMENTS_REMOTE_SERVER==1)
00014 
00015 
00016 #   include "xmog_remote_client_options.h"
00017 
00018 
00019 class XMOG_DECLSPEC xmog_client_connect
00020 {
00021 public:
00022 
00023     static xmog_client_connect *    get_client_connect( const xmog_remote_client_options & );
00024 
00025     virtual ~xmog_client_connect();
00026 
00027     virtual jint    connect() = 0;
00028 
00029     virtual jint    disconnect() = 0;
00030 
00031 protected:
00032 
00033     xmog_client_connect( const xmog_remote_client_options & );
00034 
00035     char *      isolateArgument( const char * str, const char * argname );
00036 
00037     static void *   getLibrary( const char * name ); // extracts the library that contains the entry points
00038 
00039     char *      getApplicationId(); // extracts the application ID from the connection string
00040 
00041     char *      getApiPrefix(); // extracts the API prefix that is used to look up entry points
00042 
00043     jint        getConnectionTimeout(); // extracts the connection timeout from the connection string
00044 
00045     u_short     heartBeatPort_fromServer_; // the heartbeat port used by the server
00046 
00047     jint        heartBeatInterval_fromServer_; // the heartbeat interval from the server
00048 
00049     jint        jobjectSize_fromServer_; // the jobject size in the server
00050 
00051     jint        pointerSize_fromServer_; // the pointersize on the server
00052 
00053     jint        ecConnection_fromServer_; // the error code from the connection attempt
00054 
00055     char *      msgConnection_fromServer_; // the error message from the connection attempt
00056 
00057     const       xmog_remote_client_options & opts; // the
00058 
00059 
00060 };
00061 
00062 
00063 #endif /* XMOG_IMPLEMENTS_REMOTE_SERVER==1 */
00064 
00065 
00066 #endif /* xmog_client_connect_inc */

Generated on Wed May 31 14:01:19 2006 for Shared Codemesh Runtime Library API Reference by  doxygen 1.4.1