summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/latency/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Ice/latency/Client.cpp')
-rw-r--r--cpp/demo/Ice/latency/Client.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/demo/Ice/latency/Client.cpp b/cpp/demo/Ice/latency/Client.cpp
index e0139749c6e..65f9a395837 100644
--- a/cpp/demo/Ice/latency/Client.cpp
+++ b/cpp/demo/Ice/latency/Client.cpp
@@ -36,6 +36,11 @@ LatencyClient::run(int argc, char* argv[])
return EXIT_FAILURE;
}
+ Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Latency");
+ Ice::ObjectPtr object = new Ping;
+ adapter->add(object, communicator()->stringToIdentity("ping"));
+ adapter->activate();
+
PingPrx ping = PingPrx::checkedCast(communicator()->propertyToProxy("Ping.Proxy"));
if(!ping)
{