// ********************************************************************** // // Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. // // ********************************************************************** #include #include #include using namespace std; using namespace Ice; using namespace Test; class SessionControlServer : public Application { public: virtual int run(int, char*[]); }; int main(int argc, char* argv[]) { SessionControlServer app; return app.main(argc, argv); } int SessionControlServer::run(int argc, char* argv[]) { communicator()->getProperties()->setProperty("SessionControlAdapter.Endpoints", "tcp -p 12010 -t 10000"); ObjectAdapterPtr adapter = communicator()->createObjectAdapter("SessionControlAdapter"); adapter->add(new SessionManagerI, communicator()->stringToIdentity("SessionManager")); adapter->activate(); communicator()->waitForShutdown(); return EXIT_SUCCESS; }