summaryrefslogtreecommitdiff
path: root/cpp/demo/cookbook/compression/Server.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2009-12-18 08:29:41 -0800
committerMark Spruiell <mes@zeroc.com>2009-12-18 08:29:41 -0800
commita0deeca18e2c62cda2ee4b7b12a12970d270d26c (patch)
tree3e376a4ebd932661a21bcb973ed63a2b3aeb1089 /cpp/demo/cookbook/compression/Server.cpp
parentediting vsplugin text files (diff)
downloadice-a0deeca18e2c62cda2ee4b7b12a12970d270d26c.tar.bz2
ice-a0deeca18e2c62cda2ee4b7b12a12970d270d26c.tar.xz
ice-a0deeca18e2c62cda2ee4b7b12a12970d270d26c.zip
bug 4510 - remove cookbook demos
Diffstat (limited to 'cpp/demo/cookbook/compression/Server.cpp')
-rw-r--r--cpp/demo/cookbook/compression/Server.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/cpp/demo/cookbook/compression/Server.cpp b/cpp/demo/cookbook/compression/Server.cpp
deleted file mode 100644
index 8c994dee21d..00000000000
--- a/cpp/demo/cookbook/compression/Server.cpp
+++ /dev/null
@@ -1,48 +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 <Ice/Ice.h>
-#include <Compression.h>
-
-using namespace std;
-using namespace Compression;
-
-class ReceiverI : public Receiver
-{
-public:
-
- virtual void sendData(const ByteSeq&, const Ice::Current&)
- {
- }
-};
-
-class Server : public Ice::Application
-{
-public:
-
- virtual int run(int, char*[]);
-};
-
-int
-main(int argc, char* argv[])
-{
- Server app;
- return app.main(argc, argv, "config.server");
-}
-
-int
-Server::run(int argc, char* argv[])
-{
- Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Compression");
- Ice::ObjectPtr object = new ReceiverI;
- adapter->add(object, communicator()->stringToIdentity("receiver"));
- adapter->activate();
- communicator()->waitForShutdown();
- return EXIT_SUCCESS;
-}