1
// **********************************************************************
3
// Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
5
// This copy of Ice is licensed to you under the terms described in the
6
// ICE_LICENSE file included in this distribution.
8
// **********************************************************************
11
#include <ThroughputI.h>
15
class ThroughputServer : public Ice::Application
19
virtual int run(int, char*[]);
23
main(int argc, char* argv[])
26
return app.main(argc, argv, "config.server");
30
ThroughputServer::run(int argc, char* argv[])
34
cerr << appName() << ": too many arguments" << endl;
38
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Throughput");
39
Demo::ThroughputPtr servant = new ThroughputI;
40
adapter->add(servant, communicator()->stringToIdentity("throughput"));
42
communicator()->waitForShutdown();