diff options
Diffstat (limited to 'cpp/demo/Ice/callback/CallbackI.cpp')
-rw-r--r-- | cpp/demo/Ice/callback/CallbackI.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cpp/demo/Ice/callback/CallbackI.cpp b/cpp/demo/Ice/callback/CallbackI.cpp index 1de49ef9afe..fe9b42aaba0 100644 --- a/cpp/demo/Ice/callback/CallbackI.cpp +++ b/cpp/demo/Ice/callback/CallbackI.cpp @@ -20,9 +20,21 @@ CallbackReceiverI::callback(const Current&) cout << "received callback" << endl; } +CallbackI::CallbackI(const Ice::CommunicatorPtr& communicator) : + _communicator(communicator) +{ +} + void CallbackI::initiateCallback(const CallbackReceiverPrx& proxy, const Current& current) { cout << "initiating callback" << endl; proxy->callback(current.context); } + +void +CallbackI::shutdown(const Ice::Current&) +{ + cout << "Shutting down..." << endl; + _communicator->shutdown(); +} |