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