summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/udp/TestI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/udp/TestI.cpp')
-rw-r--r--cpp/test/Ice/udp/TestI.cpp10
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)
{