Exemple #1
0
int
main(int argc, char* argv[])
{
#ifdef ICE_STATIC_LIBS
    Ice::registerIceSSL();
#endif
    CallbackServer app;
    return app.main(argc, argv, "config.server");
}
Exemple #2
0
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);
}
Exemple #3
0
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);
}
Exemple #4
0
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;
}
Exemple #5
0
int
main(int argc, char* argv[])
{
    CallbackServer app;
    return app.main(argc, argv, "config.server");
}