diff options
author | Marc Laukien <marc@zeroc.com> | 2004-08-10 10:00:43 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-08-10 10:00:43 +0000 |
commit | 68f327d7152adde7bdc3f25cc4ee3fb564512fab (patch) | |
tree | 9c73253a9a995edc67b1a0890695fc2905ab251a /cpp/demo/Glacier2/callback/CallbackI.cpp | |
parent | fix (diff) | |
download | ice-68f327d7152adde7bdc3f25cc4ee3fb564512fab.tar.bz2 ice-68f327d7152adde7bdc3f25cc4ee3fb564512fab.tar.xz ice-68f327d7152adde7bdc3f25cc4ee3fb564512fab.zip |
more glacier2
Diffstat (limited to 'cpp/demo/Glacier2/callback/CallbackI.cpp')
-rw-r--r-- | cpp/demo/Glacier2/callback/CallbackI.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/cpp/demo/Glacier2/callback/CallbackI.cpp b/cpp/demo/Glacier2/callback/CallbackI.cpp new file mode 100644 index 00000000000..81ca02eb44b --- /dev/null +++ b/cpp/demo/Glacier2/callback/CallbackI.cpp @@ -0,0 +1,34 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2004 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 <CallbackI.h> + +using namespace std; +using namespace Ice; + +void +CallbackReceiverI::callback(const Current&) +{ + cout << "received callback" << endl; +} + +void +CallbackI::initiateCallback(const CallbackReceiverPrx& proxy, const Current& current) +{ + cout << "initiating callback to: " << current.adapter->getCommunicator()->proxyToString(proxy) << endl; + proxy->callback(current.ctx); +} + +void +CallbackI::shutdown(const Ice::Current& c) +{ + cout << "Shutting down..." << endl; + c.adapter->getCommunicator()->shutdown(); +} |