diff options
Diffstat (limited to 'cpp/demo/Glacier2/callback/Server.cpp')
-rw-r--r-- | cpp/demo/Glacier2/callback/Server.cpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/cpp/demo/Glacier2/callback/Server.cpp b/cpp/demo/Glacier2/callback/Server.cpp deleted file mode 100644 index ff4f8842b62..00000000000 --- a/cpp/demo/Glacier2/callback/Server.cpp +++ /dev/null @@ -1,45 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2015 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 <Ice/Ice.h> -#include <CallbackI.h> - -using namespace std; -using namespace Demo; - -class CallbackServer : public Ice::Application -{ -public: - - virtual int run(int, char*[]); -}; - -int -main(int argc, char* argv[]) -{ - CallbackServer app; - return app.main(argc, argv, "config.server"); -} - -int -CallbackServer::run(int argc, char*[]) -{ - if(argc > 1) - { - cerr << appName() << ": too many arguments" << endl; - return EXIT_FAILURE; - } - - Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Callback.Server"); - CallbackPtr cb = new CallbackI; - adapter->add(cb, communicator()->stringToIdentity("callback")); - adapter->activate(); - communicator()->waitForShutdown(); - return EXIT_SUCCESS; -} |