summaryrefslogtreecommitdiff
path: root/cppe/demo/IceE/throughput/Client.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-01-23 19:19:01 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-01-23 19:19:01 +0000
commitd790b03c9b6bf55c77c0a56b9d5cff1dbea69e56 (patch)
treed280176e3210db8c4f6e13df9cf0d602aadc4efb /cppe/demo/IceE/throughput/Client.cpp
parentChanges to support "cpp:array" in IceE (and eventually Ice). (diff)
downloadice-d790b03c9b6bf55c77c0a56b9d5cff1dbea69e56.tar.bz2
ice-d790b03c9b6bf55c77c0a56b9d5cff1dbea69e56.tar.xz
ice-d790b03c9b6bf55c77c0a56b9d5cff1dbea69e56.zip
Changes to support "cpp:array"
Diffstat (limited to 'cppe/demo/IceE/throughput/Client.cpp')
-rw-r--r--cppe/demo/IceE/throughput/Client.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/cppe/demo/IceE/throughput/Client.cpp b/cppe/demo/IceE/throughput/Client.cpp
index 44f1cd25781..60ad8aa56bf 100644
--- a/cppe/demo/IceE/throughput/Client.cpp
+++ b/cppe/demo/IceE/throughput/Client.cpp
@@ -71,6 +71,9 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
ThroughputPrx throughputOneway = ThroughputPrx::uncheckedCast(throughput->ice_oneway());
ByteSeq byteSeq(ByteSeqSize / reduce, 0);
+ pair<const Ice::Byte*, const Ice::Byte*> byteArr;
+ byteArr.first = &byteSeq[0];
+ byteArr.second = byteArr.first + byteSeq.size();
StringSeq stringSeq(StringSeqSize / reduce, "hello");
@@ -219,13 +222,13 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
{
case 't':
{
- throughput->sendByteSeq(byteSeq);
+ throughput->sendByteSeq(byteArr);
break;
}
case 'o':
{
- throughputOneway->sendByteSeq(byteSeq);
+ throughputOneway->sendByteSeq(byteArr);
break;
}