diff options
author | Mark Spruiell <mes@zeroc.com> | 2005-10-10 20:51:09 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2005-10-10 20:51:09 +0000 |
commit | 5c820414d32245f8f23ad323787b72fb94f2782b (patch) | |
tree | 7b00c76b0c76606ed30740849b83e65921b8be84 /cpp/demo/IcePack/hello/Server.cpp | |
parent | adding IceGrid (diff) | |
download | ice-5c820414d32245f8f23ad323787b72fb94f2782b.tar.bz2 ice-5c820414d32245f8f23ad323787b72fb94f2782b.tar.xz ice-5c820414d32245f8f23ad323787b72fb94f2782b.zip |
bug 475: remove IcePack
Diffstat (limited to 'cpp/demo/IcePack/hello/Server.cpp')
-rw-r--r-- | cpp/demo/IcePack/hello/Server.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/cpp/demo/IcePack/hello/Server.cpp b/cpp/demo/IcePack/hello/Server.cpp deleted file mode 100644 index be376fd4b0c..00000000000 --- a/cpp/demo/IcePack/hello/Server.cpp +++ /dev/null @@ -1,42 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2005 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 <HelloI.h> -#include <Ice/Application.h> - -using namespace std; - -class Server : public Ice::Application -{ -public: - - virtual int run(int argc, char* argv[]); - -}; - -int -Server::run(int argc, char* argv[]) -{ - Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Hello"); - - string id = communicator()->getProperties()->getProperty("Identity"); - - adapter->add(new HelloFactoryI, Ice::stringToIdentity(id)); - adapter->activate(); - - communicator()->waitForShutdown(); - return EXIT_SUCCESS; -} - -int -main(int argc, char* argv[]) -{ - Server app; - return app.main(argc, argv); -} |