version 1.217, 2008/03/05 22:27:38
|
version 1.219, 2008/04/24 06:28:05
|
|
|
#include <Pegasus/Common/FileSystem.h> | #include <Pegasus/Common/FileSystem.h> |
#include <Pegasus/Common/PegasusVersion.h> | #include <Pegasus/Common/PegasusVersion.h> |
#include <Pegasus/Common/Logger.h> | #include <Pegasus/Common/Logger.h> |
|
#include <Pegasus/Common/StringConversion.h> |
#include <Pegasus/Common/System.h> | #include <Pegasus/Common/System.h> |
#include <Pegasus/Common/Tracer.h> | #include <Pegasus/Common/Tracer.h> |
#include <Pegasus/Common/LanguageParser.h> | #include <Pegasus/Common/LanguageParser.h> |
|
|
portNumberHttp, false); | portNumberHttp, false); |
} | } |
| |
|
char scratchBuffer[22]; |
|
Uint32 n; |
|
const char * portNumberHttpStr = Uint32ToString( |
|
scratchBuffer, portNumberHttp, n); |
MessageLoaderParms parms( | MessageLoaderParms parms( |
"src.Server.cimserver.LISTENING_ON_HTTP_PORT", | "src.Server.cimserver.LISTENING_ON_HTTP_PORT", |
"Listening on HTTP port $0.", portNumberHttp); |
"Listening on HTTP port $0.", portNumberHttpStr); |
Logger::put( | Logger::put( |
Logger::STANDARD_LOG, System::CIMSERVER, Logger::INFORMATION, | Logger::STANDARD_LOG, System::CIMSERVER, Logger::INFORMATION, |
MessageLoader::getMessage(parms)); | MessageLoader::getMessage(parms)); |
|
|
_cimServer->addAcceptor(HTTPAcceptor::IPV4_CONNECTION, | _cimServer->addAcceptor(HTTPAcceptor::IPV4_CONNECTION, |
portNumberHttps, true); | portNumberHttps, true); |
} | } |
|
char scratchBuffer[22]; |
|
Uint32 n; |
|
const char * portNumberHttpsStr = Uint32ToString( |
|
scratchBuffer, portNumberHttps, n); |
MessageLoaderParms parms( | MessageLoaderParms parms( |
"src.Server.cimserver.LISTENING_ON_HTTPS_PORT", | "src.Server.cimserver.LISTENING_ON_HTTPS_PORT", |
"Listening on HTTPS port $0.", portNumberHttps); |
"Listening on HTTPS port $0.", portNumberHttpsStr); |
Logger::put( | Logger::put( |
Logger::STANDARD_LOG, System::CIMSERVER, Logger::INFORMATION, | Logger::STANDARD_LOG, System::CIMSERVER, Logger::INFORMATION, |
MessageLoader::getMessage(parms)); | MessageLoader::getMessage(parms)); |
|
|
| |
#endif | #endif |
| |
// In case we don't want to reregister to SLP |
|
// (i.e. PEGASUS_SLP_REG_TIMEOUT not set) after CIM Server startup, |
|
// the SLP Provider is started only once, |
|
// right short before entering the runForever loop which then can handle |
|
// the invokeMethod call against the SLP provider |
|
// function startSLPProvider() does create a separate thread to process |
|
// so code continues to go into the forever loop before executing any |
|
// requests against the CIM Server |
|
#ifdef PEGASUS_ENABLE_SLP | #ifdef PEGASUS_ENABLE_SLP |
# ifndef PEGASUS_SLP_REG_TIMEOUT |
|
_cimServer->startSLPProvider(); | _cimServer->startSLPProvider(); |
# endif | # endif |
#endif |
|
// | // |
// Loop to call CIMServer's runForever() method until CIMServer | // Loop to call CIMServer's runForever() method until CIMServer |
// has been shutdown | // has been shutdown |