int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS Ice::registerIceSSL(); #endif CallbackServer app; return app.main(argc, argv, "config.server"); }
int main(int argc, char* argv[]) { Ice::InitializationData initData; initData.properties = Ice::createProperties(argc, argv); initData.properties->setProperty("Ice.Warn.Connections", "0"); initData.properties->setProperty("Ice.Warn.Dispatch", "0"); initData.properties->setProperty("Ice.ThreadPool.Server.Serialize", "1"); CallbackServer app; return app.main(argc, argv, initData); }
int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS Ice::registerIceSSL(); #endif Ice::InitializationData initData; initData.properties = Ice::createProperties(argc, argv); initData.properties->setProperty("Ice.Warn.Connections", "0"); initData.properties->setProperty("Ice.Warn.Dispatch", "0"); CallbackServer app; return app.main(argc, argv, initData); }
Callback* Server::GetCallback() { MutexLocker _(fCallbackLock); if (fCallback == NULL) { fCallback = new(std::nothrow) Callback(this); if (fCallback == NULL) return NULL; CallbackServer* server = CallbackServer::Get(this); if (server == NULL) { delete fCallback; return NULL; } if (server->RegisterCallback(fCallback) != B_OK) { delete fCallback; return NULL; } } return fCallback; }
int main(int argc, char* argv[]) { CallbackServer app; return app.main(argc, argv, "config.server"); }