// ********************************************************************** // // Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. // // ********************************************************************** #include #include #include using namespace std; void HelloI::sayHello(int delay, const Ice::Current&) { if(delay != 0) { IceUtil::ThreadControl::sleep(IceUtil::Time::milliSeconds(delay)); } cout << "Hello World!" << endl; } void HelloI::shutdown(const Ice::Current& c) { cout << "Shutting down..." << endl; c.adapter->getCommunicator()->shutdown(); }