version 1.230, 2009/02/11 05:49:14
|
version 1.231, 2009/02/16 11:47:50
|
|
|
| |
#endif /* PEGASUS_ENABLE_PRIVILEGE_SEPARATION */ | #endif /* PEGASUS_ENABLE_PRIVILEGE_SEPARATION */ |
| |
|
static void _initConfigProperty(const String &propName, Uint32 value) |
|
{ |
|
char strValue[22]; |
|
Uint32 n; |
|
const char *startP = Uint32ToString( |
|
strValue, |
|
value, |
|
n); |
|
ConfigManager::getInstance()->initCurrentValue(propName, String(startP, n)); |
|
} |
|
|
///////////////////////////////////////////////////////////////////////// | ///////////////////////////////////////////////////////////////////////// |
// MAIN | // MAIN |
////////////////////////////////////////////////////////////////////////// | ////////////////////////////////////////////////////////////////////////// |
|
|
// | // |
portNumberHttp = System::lookupPort( | portNumberHttp = System::lookupPort( |
WBEM_HTTP_SERVICE_NAME, WBEM_DEFAULT_HTTP_PORT); | WBEM_HTTP_SERVICE_NAME, WBEM_DEFAULT_HTTP_PORT); |
char strHttpPort[22]; |
_initConfigProperty("httpPort", portNumberHttp); |
Uint32 n; |
|
const char *startP = Uint32ToString( |
|
strHttpPort, |
|
portNumberHttp, |
|
n); |
|
configManager->initCurrentValue("httpPort", String(startP, n)); |
|
} | } |
else | else |
{ | { |
|
|
// | // |
portNumberHttps = System::lookupPort( | portNumberHttps = System::lookupPort( |
WBEM_HTTPS_SERVICE_NAME, WBEM_DEFAULT_HTTPS_PORT); | WBEM_HTTPS_SERVICE_NAME, WBEM_DEFAULT_HTTPS_PORT); |
char strHttpsPort[22]; |
_initConfigProperty("httpsPort", portNumberHttps); |
Uint32 n; |
|
const char *startP = Uint32ToString( |
|
strHttpsPort, |
|
portNumberHttps, |
|
n); |
|
configManager->initCurrentValue("httpsPort", String(startP, n)); |
|
} | } |
else | else |
{ | { |