summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/minimal/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Ice/minimal/Server.cpp')
-rw-r--r--cpp/demo/Ice/minimal/Server.cpp47
1 files changed, 0 insertions, 47 deletions
diff --git a/cpp/demo/Ice/minimal/Server.cpp b/cpp/demo/Ice/minimal/Server.cpp
deleted file mode 100644
index bed7dc01f0b..00000000000
--- a/cpp/demo/Ice/minimal/Server.cpp
+++ /dev/null
@@ -1,47 +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 <HelloI.h>
-
-using namespace std;
-
-int
-main(int argc, char* argv[])
-{
- Ice::CommunicatorPtr communicator;
-
- try
- {
- communicator = Ice::initialize(argc, argv);
- Ice::ObjectAdapterPtr adapter =
- communicator->createObjectAdapterWithEndpoints("Hello", "default -h localhost -p 10000");
- adapter->add(new HelloI, communicator->stringToIdentity("hello"));
- adapter->activate();
- communicator->waitForShutdown();
- communicator->destroy();
- }
- catch(const Ice::Exception& ex)
- {
- cerr << ex << endl;
- if(communicator)
- {
- try
- {
- communicator->destroy();
- }
- catch(const Ice::Exception& ex2)
- {
- cerr << ex2 << endl;
- }
- }
- exit(1);
- }
- return 0;
-}