summaryrefslogtreecommitdiff
path: root/cppe/demo/IceE/minimal/Server.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2008-06-06 18:31:39 +0200
committerBenoit Foucher <benoit@zeroc.com>2008-06-06 18:31:39 +0200
commitd2f6fad0a043e60ed450cf17cbdd85341cfcc6ba (patch)
tree3a5711cfe1b206f26d000a6630c721c9608e850d /cppe/demo/IceE/minimal/Server.cpp
parentBug 3014 - isAbsolute incorrect (diff)
downloadice-d2f6fad0a043e60ed450cf17cbdd85341cfcc6ba.tar.bz2
ice-d2f6fad0a043e60ed450cf17cbdd85341cfcc6ba.tar.xz
ice-d2f6fad0a043e60ed450cf17cbdd85341cfcc6ba.zip
Removed SL and IceE code
Diffstat (limited to 'cppe/demo/IceE/minimal/Server.cpp')
-rw-r--r--cppe/demo/IceE/minimal/Server.cpp67
1 files changed, 0 insertions, 67 deletions
diff --git a/cppe/demo/IceE/minimal/Server.cpp b/cppe/demo/IceE/minimal/Server.cpp
deleted file mode 100644
index efd5afe33de..00000000000
--- a/cppe/demo/IceE/minimal/Server.cpp
+++ /dev/null
@@ -1,67 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved.
-//
-// This copy of Ice-E is licensed to you under the terms described in the
-// ICEE_LICENSE file included in this distribution.
-//
-// **********************************************************************
-
-#include <IceE/IceE.h>
-#include <Hello.h>
-
-using namespace std;
-using namespace Demo;
-
-class HelloI : public Hello
-{
-public:
-
- virtual void
- sayHello(const Ice::Current&) const
- {
- printf("Hello World!\n");
- }
-};
-
-int
-main(int argc, char* argv[])
-{
- int status = EXIT_SUCCESS;
- Ice::CommunicatorPtr communicator;
-
- try
- {
- communicator = Ice::initialize(argc, argv);
- if(argc > 1)
- {
- fprintf(stderr, "%s: too many arguments\n", argv[0]);
- return EXIT_FAILURE;
- }
- Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("Hello", "tcp -p 10000");
- Demo::HelloPtr object = new HelloI;
- adapter->add(object, communicator->stringToIdentity("hello"));
- adapter->activate();
- communicator->waitForShutdown();
- }
- 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;
-}