summaryrefslogtreecommitdiff
path: root/cppe/demo/IceE/throughput/WinCEClient.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-02-21 20:09:26 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-02-21 20:09:26 +0000
commit10d5725848148fb91a39c132973a3704b091c1f4 (patch)
tree53d66a7adbc6b1a6679dfa7a6f179fa6ca757f40 /cppe/demo/IceE/throughput/WinCEClient.cpp
parentMoved response wait to connection (diff)
downloadice-10d5725848148fb91a39c132973a3704b091c1f4.tar.bz2
ice-10d5725848148fb91a39c132973a3704b091c1f4.tar.xz
ice-10d5725848148fb91a39c132973a3704b091c1f4.zip
Use ["cpp:array"] for byte seq
Diffstat (limited to 'cppe/demo/IceE/throughput/WinCEClient.cpp')
-rwxr-xr-xcppe/demo/IceE/throughput/WinCEClient.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/cppe/demo/IceE/throughput/WinCEClient.cpp b/cppe/demo/IceE/throughput/WinCEClient.cpp
index 27860235631..a637572bd28 100755
--- a/cppe/demo/IceE/throughput/WinCEClient.cpp
+++ b/cppe/demo/IceE/throughput/WinCEClient.cpp
@@ -150,6 +150,9 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmd
// Initialize data structures
//
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");
@@ -240,13 +243,13 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmd
{
case 0:
{
- throughput->sendByteSeq(byteSeq);
+ throughput->sendByteSeq(byteArr);
break;
}
case 1:
{
- throughputOneway->sendByteSeq(byteSeq);
+ throughputOneway->sendByteSeq(byteArr);
break;
}