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