diff options
author | Mark Spruiell <mes@zeroc.com> | 2009-12-18 08:29:41 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2009-12-18 08:29:41 -0800 |
commit | a0deeca18e2c62cda2ee4b7b12a12970d270d26c (patch) | |
tree | 3e376a4ebd932661a21bcb973ed63a2b3aeb1089 /cpp/demo/cookbook/compression/Server.cpp | |
parent | editing vsplugin text files (diff) | |
download | ice-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.cpp | 48 |
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; -} |