[Sphere-axis-commits] CVS: axissvr axissvr.cfg,1.3,1.3.4.1 gwhogsvr.cpp,1.27.2.2,1.27.2.3
Brought to you by:
pesterle
From: Philip E. <pes...@us...> - 2003-10-13 21:34:10
|
Update of /cvsroot/sphere-axis/axissvr In directory sc8-pr-cvs1:/tmp/cvs-serv13291 Modified Files: Tag: v0_13-Stable axissvr.cfg gwhogsvr.cpp Log Message: Added a new configuration parameter called SPHEREPATH which allows axis server to run from a different directory than sphere. Index: axissvr.cfg =================================================================== RCS file: /cvsroot/sphere-axis/axissvr/axissvr.cfg,v retrieving revision 1.3 retrieving revision 1.3.4.1 diff -C2 -r1.3 -r1.3.4.1 *** axissvr.cfg 26 Jul 2002 19:05:55 -0000 1.3 --- axissvr.cfg 13 Oct 2003 21:34:06 -0000 1.3.4.1 *************** *** 63,64 **** --- 63,69 ---- # quotes. # ALLOWEDHOSTS localhost,10.0. + + # SPHEREPATH specifies the location of the sphere server executable file. If + # you have AxisServer and Sphere in the same directory, you should leave this + # commented out. Otherwise, provide the full path of the sphere executable. + # SPHEREPATH c:\sphere Index: gwhogsvr.cpp =================================================================== RCS file: /cvsroot/sphere-axis/axissvr/gwhogsvr.cpp,v retrieving revision 1.27.2.2 retrieving revision 1.27.2.3 diff -C2 -r1.27.2.2 -r1.27.2.3 *** gwhogsvr.cpp 22 Aug 2003 04:05:03 -0000 1.27.2.2 --- gwhogsvr.cpp 13 Oct 2003 21:34:06 -0000 1.27.2.3 *************** *** 69,72 **** --- 69,73 ---- char * g_pszSpawns; int g_iReceiveTimeout; + char g_szSpherePath[MAX_BUFFER]; #ifdef WIN32 *************** *** 83,86 **** --- 84,88 ---- memset(g_szAllowedExtensions, 0x00, sizeof(g_szAllowedExtensions)); memset(g_szLogPath, 0x00, sizeof(g_szLogPath)); + memset(g_szSpherePath, 0x00, sizeof(g_szSpherePath)); #ifdef WIN32 char szMutex[256]; *************** *** 181,184 **** --- 183,189 ---- if (szCommand != NULL) strcpy(g_szDeniedHosts, &szCommand[12]); + szCommand = strstr(szLine, "SPHEREPATH"); + if (szCommand != NULL) + strcpy(g_szSpherePath, &szCommand[11]); } } *************** *** 191,194 **** --- 196,205 ---- SysMessage("\nUnable to open axissvr.cfg...using default values.\n"); } + if ( strlen(g_szSpherePath) > 0 ) + #ifdef _WIN32 + _chdir(g_szSpherePath); + #else + chdir(g_szSpherePath); + #endif dwTusPort = 2593; |