diff options
Diffstat (limited to 'cpp/demo/IceBox/hello/HelloI.cpp')
-rw-r--r-- | cpp/demo/IceBox/hello/HelloI.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/cpp/demo/IceBox/hello/HelloI.cpp b/cpp/demo/IceBox/hello/HelloI.cpp new file mode 100644 index 00000000000..a0b5969f726 --- /dev/null +++ b/cpp/demo/IceBox/hello/HelloI.cpp @@ -0,0 +1,32 @@ +// ********************************************************************** +// +// Copyright (c) 2001 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#include <Ice/Ice.h> +#include <HelloI.h> + +using namespace std; + +HelloI::HelloI(const Ice::CommunicatorPtr& communicator) : + _communicator(communicator) +{ +} + +void +HelloI::hello(const Ice::Current&) +{ + cout << "Hello World!" << endl; +} + +void +HelloI::shutdown(const Ice::Current&) +{ + cout << "Shutting down..." << endl; + _communicator->shutdown(); +} |