(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.8 and 1.9

version 1.8, 2001/05/20 20:34:07 version 1.9, 2001/05/27 21:01:45
Line 32 
Line 32 
 #include <Pegasus/Common/OptionManager.h> #include <Pegasus/Common/OptionManager.h>
 #include <Pegasus/Server/CIMServer.h> #include <Pegasus/Server/CIMServer.h>
 #include <Pegasus/Common/PegasusVersion.h> #include <Pegasus/Common/PegasusVersion.h>
   #include <Pegasus/Protocol/Handler.h>
  
 PEGASUS_USING_PEGASUS; PEGASUS_USING_PEGASUS;
 PEGASUS_USING_STD; PEGASUS_USING_STD;
  
 // const char PEGASUS_VERSION[]  = "Pegasus CIM Server - Version 0.7";  
  
 void GetEnvironmentVariables( void GetEnvironmentVariables(
     const char* arg0,     const char* arg0,
Line 65 
Line 66 
     static struct OptionRow options[] =     static struct OptionRow options[] =
     {     {
         {"port", "8888", false, Option::WHOLE_NUMBER, 0, 0, "port"},         {"port", "8888", false, Option::WHOLE_NUMBER, 0, 0, "port"},
         {"trace", "false", false, Option::BOOLEAN, 0, 0, "trace"},          {"trace", "false", false, Option::BOOLEAN, 0, 0, "t"},
         {"version", "false", false, Option::BOOLEAN, 0, 0, "v"},         {"version", "false", false, Option::BOOLEAN, 0, 0, "v"},
         {"help", "false", false, Option::BOOLEAN, 0, 0, "h"}          {"help", "false", false, Option::BOOLEAN, 0, 0, "h"},
           {"debug", "false", false, Option::BOOLEAN, 0, 0, "d"}
     };     };
     const Uint32 NUM_OPTIONS = sizeof(options) / sizeof(options[0]);     const Uint32 NUM_OPTIONS = sizeof(options) / sizeof(options[0]);
  
Line 94 
Line 96 
     cout << "    -port - specifies port number to listen on\n";     cout << "    -port - specifies port number to listen on\n";
     cout << "    -v - prints out the version number\n";     cout << "    -v - prints out the version number\n";
     cout << "    -t - turns on trace mode\n";     cout << "    -t - turns on trace mode\n";
       cout << "    -d - turns on debug mode\n";
     cout << endl;     cout << endl;
 } }
  
Line 154 
Line 157 
         exit(0);         exit(0);
     }     }
  
       // Check the trace options and set global variable
       Boolean pegasusIOTrace;
       if (om.valueEquals("trace", "true"))
       {
            Handler::sethandlerTrace(true);
            pegasusIOTrace = true;
            cout << "Trace Set" << endl;
       }
     // Grab the port otpion:     // Grab the port otpion:
  
     String portOption;     String portOption;
Line 172 
Line 183 
         cout << PEGASUS_NAME << PEGASUS_VERSION <<         cout << PEGASUS_NAME << PEGASUS_VERSION <<
              " on port " << address << endl;              " on port " << address << endl;
         cout << "Built " << __DATE__ << " " << __TIME__ << endl;         cout << "Built " << __DATE__ << " " << __TIME__ << endl;
         cout <<"Started..." <<endl;          cout <<"Started..."
                << (pegasusIOTrace ? " Tracing": " ") << endl;
  
         server.bind(address);         server.bind(address);
         delete [] address;         delete [] address;


Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2