(file) Return to cimserver.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Server

Diff for /pegasus/src/Server/cimserver.cpp between version 1.150 and 1.151

version 1.150, 2005/02/06 21:28:25 version 1.151, 2005/02/08 22:39:33
Line 176 
Line 176 
 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;
Line 648 
Line 642 
                     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):
Line 980 
Line 942 
     {     {
         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'))
Line 1006 
Line 961 
     {     {
         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'))
Line 1175 
Line 1123 
  
         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);


Legend:
Removed from v.1.150  
changed lines
  Added in v.1.151

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2