diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-12-13 14:49:32 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-12-13 14:49:32 -0330 |
commit | 095ce5674bfa3c48b0cabbc2e37a10c0433a46aa (patch) | |
tree | 8c66092204389e83f3e678ff0f12dae45ab567a4 /cpp/demo/Ice/multicast/HelloI.cpp | |
parent | - Fixes to makemsi.py to support new directory structure. (diff) | |
download | ice-095ce5674bfa3c48b0cabbc2e37a10c0433a46aa.tar.bz2 ice-095ce5674bfa3c48b0cabbc2e37a10c0433a46aa.tar.xz ice-095ce5674bfa3c48b0cabbc2e37a10c0433a46aa.zip |
Added multicast demo
Diffstat (limited to 'cpp/demo/Ice/multicast/HelloI.cpp')
-rw-r--r-- | cpp/demo/Ice/multicast/HelloI.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/cpp/demo/Ice/multicast/HelloI.cpp b/cpp/demo/Ice/multicast/HelloI.cpp new file mode 100644 index 00000000000..d6df14197a1 --- /dev/null +++ b/cpp/demo/Ice/multicast/HelloI.cpp @@ -0,0 +1,27 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2007 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 <IceUtil/IceUtil.h> +#include <Ice/Ice.h> +#include <HelloI.h> + +using namespace std; + +void +HelloI::sayHello(const Ice::Current&) const +{ + cout << "Hello World!" << endl; +} + +void +HelloI::shutdown(const Ice::Current& c) +{ + cout << "Shutting down..." << endl; + c.adapter->getCommunicator()->shutdown(); +} |