// ********************************************************************** // // Copyright (c) 2003-2006 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; extern "C" { // // Factory function // HELLO_API IceBox::Service* create(Ice::CommunicatorPtr communicator) { return new HelloServiceI; } } HelloServiceI::HelloServiceI() { } HelloServiceI::~HelloServiceI() { } void HelloServiceI::start(const string& name, const Ice::CommunicatorPtr& communicator, const Ice::StringSeq& args) { _adapter = communicator->createObjectAdapter(name); _adapter->add(new HelloI, communicator->stringToIdentity("hello")); _adapter->activate(); } void HelloServiceI::stop() { _adapter->deactivate(); }