(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.79 and 1.79.2.2

version 1.79, 2002/10/15 21:41:03 version 1.79.2.2, 2002/10/30 20:26:03
Line 245 
Line 245 
     //     //
     try     try
     {     {
         client.connectLocal();  
  
         //         // use the local port only.
         // set client timeout to 2 seconds         String addr("127.0.0.1:");
         //         if (String::equal(configManager->getCurrentValue("SSL"), "true"))
         client.setTimeout(2000);         {
             addr.append(configManager->getCurrentValue("httpsPort"));
          }
          else
          {
             addr.append(configManager->getCurrentValue("httpPort"));
          }
   
          // use localPrivilegedOnly instead
          client.connect(addr);
   
     }     }
       catch(Exception &)
       {
          try
          {
             client.connectLocal();
          }
   
     catch(Exception& e)     catch(Exception& e)
     {     {
         PEGASUS_STD(cerr) << "Unable to connect to CIM Server." << PEGASUS_STD(endl);         PEGASUS_STD(cerr) << "Unable to connect to CIM Server." << PEGASUS_STD(endl);
Line 263 
Line 279 
 #endif #endif
         exit(0);         exit(0);
     }     }
       }
       client.setTimeout(2000);
  
     try     try
     {     {
         //         //
         // construct CIMObjectPath         // construct CIMObjectPath
         //         //
         String referenceStr = "//";          String referenceStr;
         referenceStr.append(hostStr);         referenceStr.append(hostStr);
         referenceStr.append("/");         referenceStr.append("/");
         referenceStr.append(PEGASUS_NAMESPACENAME_SHUTDOWN.getString());         referenceStr.append(PEGASUS_NAMESPACENAME_SHUTDOWN.getString());
Line 871 
Line 889 
  
         return 1;         return 1;
     }     }
   #if defined(PEGASUS_OS_TYPE_UNIX)
       kill(getpid(), SIGKILL);
   #endif
   #if defined(PEGASUS_OS_TYPE_WINDOWS)
       ExitProcess(0);
   #endif
       _exit(1);
     return 0;     return 0;
 } }


Legend:
Removed from v.1.79  
changed lines
  Added in v.1.79.2.2

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2