diff options
Diffstat (limited to 'cppe/demo/IceE/nested/Server.cpp')
-rw-r--r-- | cppe/demo/IceE/nested/Server.cpp | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/cppe/demo/IceE/nested/Server.cpp b/cppe/demo/IceE/nested/Server.cpp deleted file mode 100644 index f0490dd8d97..00000000000 --- a/cppe/demo/IceE/nested/Server.cpp +++ /dev/null @@ -1,61 +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 <IceE/IceE.h> -#include <NestedI.h> - -using namespace std; -using namespace Ice; -using namespace Demo; - -int -run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) -{ - ObjectAdapterPtr adapter = communicator->createObjectAdapter("Nested.Server"); - NestedPrx self = NestedPrx::uncheckedCast(adapter->createProxy(Ice::stringToIdentity("nestedServer"))); - adapter->add(new NestedI(self), Ice::stringToIdentity("nestedServer")); - adapter->activate(); - communicator->waitForShutdown(); - return EXIT_SUCCESS; -} - -int -main(int argc, char* argv[]) -{ - int status; - Ice::CommunicatorPtr communicator; - - try - { - Ice::PropertiesPtr properties = Ice::createProperties(); - properties->load("config"); - communicator = Ice::initializeWithProperties(argc, argv, properties); - status = run(argc, argv, communicator); - } - catch(const Ice::Exception& ex) - { - fprintf(stderr, "%s\n", ex.toString().c_str()); - status = EXIT_FAILURE; - } - - if(communicator) - { - try - { - communicator->destroy(); - } - catch(const Ice::Exception& ex) - { - fprintf(stderr, "%s\n", ex.toString().c_str()); - status = EXIT_FAILURE; - } - } - - return status; -} |