diff options
author | Jose <jose@zeroc.com> | 2015-12-03 12:18:04 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2015-12-03 12:18:04 +0100 |
commit | fb6e02eb536f24b9187021df64d7856c98b0e95a (patch) | |
tree | 7b123e9559dc473b517950d2d0627d329a4349b2 /cpp/test/Ice/udp/TestI.cpp | |
parent | C++11 mapping: invocation timeout fixes (diff) | |
download | ice-fb6e02eb536f24b9187021df64d7856c98b0e95a.tar.bz2 ice-fb6e02eb536f24b9187021df64d7856c98b0e95a.tar.xz ice-fb6e02eb536f24b9187021df64d7856c98b0e95a.zip |
C++11 mapping: update & timeout tests
Diffstat (limited to 'cpp/test/Ice/udp/TestI.cpp')
-rw-r--r-- | cpp/test/Ice/udp/TestI.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cpp/test/Ice/udp/TestI.cpp b/cpp/test/Ice/udp/TestI.cpp index 46b30ba20c9..468dba622d0 100644 --- a/cpp/test/Ice/udp/TestI.cpp +++ b/cpp/test/Ice/udp/TestI.cpp @@ -15,7 +15,7 @@ using namespace std; using namespace Ice; void -TestIntfI::ping(const Test::PingReplyPrx& reply, const Current&) +TestIntfI::ping(const Test::PingReplyPrxPtr& reply, const Current&) { try { @@ -28,7 +28,7 @@ TestIntfI::ping(const Test::PingReplyPrx& reply, const Current&) } void -TestIntfI::sendByteSeq(const Test::ByteSeq&, const Test::PingReplyPrx& reply, const Current&) +TestIntfI::sendByteSeq(const Test::ByteSeq&, const Test::PingReplyPrxPtr& reply, const Current&) { try { @@ -53,7 +53,7 @@ TestIntfI::pingBiDir(const Ice::Identity& id, const Ice::Current& current) { Test::ByteSeq seq; seq.resize(32 * 1024); - Test::TestIntfPrx::uncheckedCast(current.con->createProxy(id))->sendByteSeq(seq, 0); + ICE_UNCHECKED_CAST(Test::TestIntfPrx, current.con->createProxy(id))->sendByteSeq(seq, 0); } catch(const DatagramLimitException&) { @@ -63,7 +63,11 @@ TestIntfI::pingBiDir(const Ice::Identity& id, const Ice::Current& current) // // Send the reply through the incoming connection. // +#ifdef ICE_CPP11_MAPPING + Ice::uncheckedCast<Test::PingReplyPrx>(current.con->createProxy(id))->reply_async(); +#else Test::PingReplyPrx::uncheckedCast(current.con->createProxy(id))->begin_reply(); +#endif } catch(const Ice::Exception& ex) { |