diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2005-08-08 13:33:04 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2005-08-08 13:33:04 +0000 |
commit | df8cf81989c083af7861b9bec0f05d40d9cd195b (patch) | |
tree | 2e0e0444e84444aa2620e55e78e2365554f2010d /cppe/demo/IceE/throughput/Server.cpp | |
parent | added missing files. (diff) | |
download | ice-df8cf81989c083af7861b9bec0f05d40d9cd195b.tar.bz2 ice-df8cf81989c083af7861b9bec0f05d40d9cd195b.tar.xz ice-df8cf81989c083af7861b9bec0f05d40d9cd195b.zip |
Ported throughput to WinCE
Diffstat (limited to 'cppe/demo/IceE/throughput/Server.cpp')
-rw-r--r-- | cppe/demo/IceE/throughput/Server.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/cppe/demo/IceE/throughput/Server.cpp b/cppe/demo/IceE/throughput/Server.cpp index 78d459eda97..b33bd0a3eff 100644 --- a/cppe/demo/IceE/throughput/Server.cpp +++ b/cppe/demo/IceE/throughput/Server.cpp @@ -14,8 +14,20 @@ using namespace std; int run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { + // + // Check if we need to run with small sequences + // + int reduce = 1; + for(int i = 0; i < argc; ++i) + { + if(strcmp(argv[i], "--small") == 0) + { + reduce = 100; + } + } + Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("Throughput"); - Ice::ObjectPtr object = new ThroughputI; + Ice::ObjectPtr object = new ThroughputI(reduce); adapter->add(object, Ice::stringToIdentity("throughput")); adapter->activate(); communicator->waitForShutdown(); |