diff options
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; -} |