version 1.150, 2005/02/06 21:28:25
|
version 1.151, 2005/02/08 22:39:33
|
|
|
static const char OPTION_BINDVERBOSE = 'X'; | static const char OPTION_BINDVERBOSE = 'X'; |
#endif | #endif |
| |
# if defined(PEGASUS_OS_VMS) |
|
static const char OPTION_PORT = 'p'; |
|
|
|
static const char OPTION_TRACE = 't'; |
|
#endif |
|
|
|
static const String PROPERTY_TIMEOUT = "shutdownTimeout"; | static const String PROPERTY_TIMEOUT = "shutdownTimeout"; |
| |
ConfigManager* configManager; | ConfigManager* configManager; |
|
|
argc -= 2; | argc -= 2; |
} | } |
#endif | #endif |
#if defined(PEGASUS_OS_VMS) |
|
else if (*option == OPTION_PORT) |
|
{ |
|
if (i + 1 < argc) |
|
{ |
|
newPortNumber.assign(argv[i + 1]); |
|
} |
|
else |
|
{ |
|
cout << "Missing argument for option -" << option << endl; |
|
exit(0); |
|
} |
|
|
|
memmove(&argv[i], &argv[i + 2], (argc-i-1) * sizeof(char*)); |
|
argc -= 2; |
|
} |
|
else if (*option == OPTION_TRACE) |
|
{ |
|
if (i + 1 < argc) |
|
{ |
|
pegasusTrace.assign(argv[i + 1]); |
|
} |
|
else |
|
{ |
|
cout << "Missing argument for option -" << option << endl; |
|
exit(0); |
|
} |
|
|
|
memmove(&argv[i], &argv[i + 2], (argc-i-1) * sizeof(char*)); |
|
argc -= 2; |
|
} |
|
#endif |
|
#if defined(PEGASUS_OS_HPUX) | #if defined(PEGASUS_OS_HPUX) |
// | // |
// Check to see if user asked for the version (-X option): | // Check to see if user asked for the version (-X option): |
|
|
{ | { |
String httpsPort = configManager->getCurrentValue("httpsPort"); | String httpsPort = configManager->getCurrentValue("httpsPort"); |
CString portString = httpsPort.getCString(); | CString portString = httpsPort.getCString(); |
#if defined(PEGASUS_OS_VMS) |
|
// if (!(newPortNumber == String::EMPTY)) |
|
if (!(newPortNumber == "")) |
|
{ |
|
portString = newPortNumber.getCString(); |
|
} |
|
#endif |
|
char* end = 0; | char* end = 0; |
Uint32 port = strtol(portString, &end, 10); | Uint32 port = strtol(portString, &end, 10); |
if(!(end != 0 && *end == '\0')) | if(!(end != 0 && *end == '\0')) |
|
|
{ | { |
String httpPort = configManager->getCurrentValue("httpPort"); | String httpPort = configManager->getCurrentValue("httpPort"); |
CString portString = httpPort.getCString(); | CString portString = httpPort.getCString(); |
#if defined(PEGASUS_OS_VMS) |
|
// if (!(newPortNumber == String::EMPTY)) |
|
if (!(newPortNumber == "")) |
|
{ |
|
portString = newPortNumber.getCString(); |
|
} |
|
#endif |
|
char* end = 0; | char* end = 0; |
Uint32 port = strtol(portString, &end, 10); | Uint32 port = strtol(portString, &end, 10); |
if(!(end != 0 && *end == '\0')) | if(!(end != 0 && *end == '\0')) |
|
|
| |
CimserverHolder cimserverHolder( &server ); | CimserverHolder cimserverHolder( &server ); |
| |
#if defined(PEGASUS_OS_VMS) |
|
// |
|
// Enable tracing at highest level |
|
// |
|
|
|
if (!(pegasusTrace == String::EMPTY)) |
|
{ |
|
Tracer::setTraceFile(pegasusTrace.getCString()); |
|
Tracer::setTraceLevel(Tracer::LEVEL4); |
|
Tracer::setTraceComponents("All"); |
|
} |
|
#endif |
|
if (enableHttpConnection) | if (enableHttpConnection) |
{ | { |
server.addAcceptor(false, portNumberHttp, false, false); | server.addAcceptor(false, portNumberHttp, false, false); |