diff options
author | Marc Laukien <marc@zeroc.com> | 2002-01-15 17:14:48 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-01-15 17:14:48 +0000 |
commit | 03ebac3c1b6a55418de40b98a303620f85ea2023 (patch) | |
tree | 0377744a848f7b2739514e74d3af761737978e3d /cpp/demo/Ice/callback/CallbackI.cpp | |
parent | updates. (diff) | |
download | ice-03ebac3c1b6a55418de40b98a303620f85ea2023.tar.bz2 ice-03ebac3c1b6a55418de40b98a303620f85ea2023.tar.xz ice-03ebac3c1b6a55418de40b98a303620f85ea2023.zip |
callback demo
Diffstat (limited to 'cpp/demo/Ice/callback/CallbackI.cpp')
-rw-r--r-- | cpp/demo/Ice/callback/CallbackI.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/cpp/demo/Ice/callback/CallbackI.cpp b/cpp/demo/Ice/callback/CallbackI.cpp new file mode 100644 index 00000000000..1de49ef9afe --- /dev/null +++ b/cpp/demo/Ice/callback/CallbackI.cpp @@ -0,0 +1,28 @@ +// ********************************************************************** +// +// Copyright (c) 2001 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#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" << endl; + proxy->callback(current.context); +} |