diff options
Diffstat (limited to 'cpp/test/Ice/udp/TestI.cpp')
-rw-r--r-- | cpp/test/Ice/udp/TestI.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/cpp/test/Ice/udp/TestI.cpp b/cpp/test/Ice/udp/TestI.cpp index fec53ef820d..9e5dae3adc1 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(ICE_IN(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(ICE_IN(Test::ByteSeq), ICE_IN(Test::PingReplyPrxPtr) reply, const Current&) { try { @@ -41,7 +41,7 @@ TestIntfI::sendByteSeq(const Test::ByteSeq&, const Test::PingReplyPrx& reply, co } void -TestIntfI::pingBiDir(const Ice::Identity& id, const Ice::Current& current) +TestIntfI::pingBiDir(ICE_IN(Ice::Identity) id, const Ice::Current& 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))->replyAsync(); +#else Test::PingReplyPrx::uncheckedCast(current.con->createProxy(id))->begin_reply(); +#endif } catch(const Ice::Exception& ex) { |