// ********************************************************************** // // Copyright (c) 2003 // ZeroC, Inc. // Billerica, MA, USA // // All Rights Reserved. // // Ice is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License version 2 as published by // the Free Software Foundation. // // ********************************************************************** #include #include using namespace std; using namespace Ice; void 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.ctx); } void CallbackI::shutdown(const Ice::Current&) { cout << "Shutting down..." << endl; _communicator->shutdown(); }