diff options
Diffstat (limited to 'cpp/demo/Ice/throughput/Client.cpp')
-rw-r--r-- | cpp/demo/Ice/throughput/Client.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/demo/Ice/throughput/Client.cpp b/cpp/demo/Ice/throughput/Client.cpp index e61514e5a7e..24cb4732733 100644 --- a/cpp/demo/Ice/throughput/Client.cpp +++ b/cpp/demo/Ice/throughput/Client.cpp @@ -55,6 +55,9 @@ ThroughputClient::run(int argc, char* argv[]) ThroughputPrx throughputOneway = ThroughputPrx::uncheckedCast(throughput->ice_oneway()); ByteSeq byteSeq(ByteSeqSize, 0); + pair<const Ice::Byte*, const Ice::Byte*> byteArr; + byteArr.first = &byteSeq[0]; + byteArr.second = byteArr.first + byteSeq.size(); StringSeq stringSeq(StringSeqSize, "hello"); @@ -200,13 +203,13 @@ ThroughputClient::run(int argc, char* argv[]) { case 't': { - throughput->sendByteSeq(byteSeq); + throughput->sendByteSeq(byteArr); break; } case 'o': { - throughputOneway->sendByteSeq(byteSeq); + throughputOneway->sendByteSeq(byteArr); break; } |