summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/protobuf/Server.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2009-03-26 16:22:48 -0230
committerDwayne Boone <dwayne@zeroc.com>2009-03-26 16:22:48 -0230
commit09ad7aefdf77c9575d6b0d8f16df4e2d61cfc41f (patch)
treef2d6fef63d085070f174a24f1db123f893bbd1c0 /cpp/test/Ice/protobuf/Server.cpp
parentAllow for 3 line comment in header (diff)
downloadice-09ad7aefdf77c9575d6b0d8f16df4e2d61cfc41f.tar.bz2
ice-09ad7aefdf77c9575d6b0d8f16df4e2d61cfc41f.tar.xz
ice-09ad7aefdf77c9575d6b0d8f16df4e2d61cfc41f.zip
Removed protobuf demos/tests
Diffstat (limited to 'cpp/test/Ice/protobuf/Server.cpp')
-rw-r--r--cpp/test/Ice/protobuf/Server.cpp66
1 files changed, 0 insertions, 66 deletions
diff --git a/cpp/test/Ice/protobuf/Server.cpp b/cpp/test/Ice/protobuf/Server.cpp
deleted file mode 100644
index 57c454a897b..00000000000
--- a/cpp/test/Ice/protobuf/Server.cpp
+++ /dev/null
@@ -1,66 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2009 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 <TestI.h>
-
-using namespace std;
-
-int
-run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
-{
- communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12010 -t 10000:udp");
- Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- Ice::ObjectPtr object = new MyClassI;
- adapter->add(object, communicator->stringToIdentity("test"));
- adapter->activate();
- communicator->waitForShutdown();
- return EXIT_SUCCESS;
-}
-
-int
-main(int argc, char* argv[])
-{
- int status;
- Ice::CommunicatorPtr communicator;
-
- try
- {
- Ice::InitializationData initData;
- initData.properties = Ice::createProperties(argc, argv);
-
- //
- // This test kills connections, so we don't want warnings.
- //
- initData.properties->setProperty("Ice.Warn.Connections", "0");
-
- communicator = Ice::initialize(argc, argv, initData);
- status = run(argc, argv, communicator);
- }
- catch(const Ice::Exception& ex)
- {
- cerr << ex << endl;
- status = EXIT_FAILURE;
- }
-
- if(communicator)
- {
- try
- {
- communicator->destroy();
- }
- catch(const Ice::Exception& ex)
- {
- cerr << ex << endl;
- status = EXIT_FAILURE;
- }
- }
-
- return status;
-}