diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-04-07 14:03:22 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-04-07 14:03:22 +0000 |
commit | c95db5ffb0a898568066a79aaa15acbaee24ac3a (patch) | |
tree | b57c3f89352234f57c5c95b930ed5e45fd019013 /cppe/demo/IceE/throughput/WinCEServer.cpp | |
parent | Bug 803 - Changed communicator initialzation (diff) | |
download | ice-c95db5ffb0a898568066a79aaa15acbaee24ac3a.tar.bz2 ice-c95db5ffb0a898568066a79aaa15acbaee24ac3a.tar.xz ice-c95db5ffb0a898568066a79aaa15acbaee24ac3a.zip |
Bug 803 - changed communicator initialization
Diffstat (limited to 'cppe/demo/IceE/throughput/WinCEServer.cpp')
-rwxr-xr-x | cppe/demo/IceE/throughput/WinCEServer.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cppe/demo/IceE/throughput/WinCEServer.cpp b/cppe/demo/IceE/throughput/WinCEServer.cpp index 1a1462c95cf..d45b4c834da 100755 --- a/cppe/demo/IceE/throughput/WinCEServer.cpp +++ b/cppe/demo/IceE/throughput/WinCEServer.cpp @@ -111,13 +111,14 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmd try { - Ice::PropertiesPtr properties = Ice::createProperties(); + Ice::InitializationData initData; + initData.properties = Ice::createProperties(); // // Set a default value for Latency.Endpoints so that the demo // will run without a configuration file. // - properties->setProperty("Throughput.Endpoints","tcp -p 10000"); + initData.properties->setProperty("Throughput.Endpoints","tcp -p 10000"); // // Now, load the configuration file if present. Under WinCE we @@ -125,13 +126,13 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmd // try { - properties->load("config.txt"); + initData.properties->load("config.txt"); } catch(const Ice::FileException&) { } - communicator = Ice::initializeWithProperties(__argc, __argv, properties); + communicator = Ice::initialize(__argc, __argv, initData); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("Throughput"); Ice::ObjectPtr object = new ThroughputI(100); |