diff options
author | Marc Laukien <marc@zeroc.com> | 2002-01-17 22:39:59 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-01-17 22:39:59 +0000 |
commit | 6202503ffcd483bd817a0f2c9fb587ad95ddef60 (patch) | |
tree | 2feedd19d1803a747d328e498eea8759d5e14c2a /cpp/demo/Ice/callback/CallbackI.cpp | |
parent | adding server (diff) | |
download | ice-6202503ffcd483bd817a0f2c9fb587ad95ddef60.tar.bz2 ice-6202503ffcd483bd817a0f2c9fb587ad95ddef60.tar.xz ice-6202503ffcd483bd817a0f2c9fb587ad95ddef60.zip |
fixes
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(); +} |