00001
00002
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 );
00038
00039 char * getApplicationId();
00040
00041 char * getApiPrefix();
00042
00043 jint getConnectionTimeout();
00044
00045 u_short heartBeatPort_fromServer_;
00046
00047 jint heartBeatInterval_fromServer_;
00048
00049 jint jobjectSize_fromServer_;
00050
00051 jint pointerSize_fromServer_;
00052
00053 jint ecConnection_fromServer_;
00054
00055 char * msgConnection_fromServer_;
00056
00057 const xmog_remote_client_options & opts;
00058
00059
00060 };
00061
00062
00063 #endif
00064
00065
00066 #endif