diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-01-04 16:44:17 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-01-04 16:44:17 +0000 |
commit | 983d60b2376887d153edba3d06fd33515930aa9e (patch) | |
tree | 0233df4f60e94bb8944cf39d7fc5707b5ece51a5 /cppe/demo | |
parent | Added support for ["cpp:array"] to slice2cppe (diff) | |
download | ice-983d60b2376887d153edba3d06fd33515930aa9e.tar.bz2 ice-983d60b2376887d153edba3d06fd33515930aa9e.tar.xz ice-983d60b2376887d153edba3d06fd33515930aa9e.zip |
Changed sendByteSeq to use zerocopy
Diffstat (limited to 'cppe/demo')
-rw-r--r-- | cppe/demo/IceE/throughput/Throughput.ice | 2 | ||||
-rw-r--r-- | cppe/demo/IceE/throughput/ThroughputI.cpp | 2 | ||||
-rw-r--r-- | cppe/demo/IceE/throughput/ThroughputI.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/cppe/demo/IceE/throughput/Throughput.ice b/cppe/demo/IceE/throughput/Throughput.ice index 912c1e04395..57387404e5a 100644 --- a/cppe/demo/IceE/throughput/Throughput.ice +++ b/cppe/demo/IceE/throughput/Throughput.ice @@ -38,7 +38,7 @@ const int FixedSeqSize = 50000; interface Throughput { - void sendByteSeq(ByteSeq seq); + void sendByteSeq(["cpp:array"] ByteSeq seq); ByteSeq recvByteSeq(); ByteSeq echoByteSeq(ByteSeq seq); diff --git a/cppe/demo/IceE/throughput/ThroughputI.cpp b/cppe/demo/IceE/throughput/ThroughputI.cpp index 7baeeca9394..70230f82ac1 100644 --- a/cppe/demo/IceE/throughput/ThroughputI.cpp +++ b/cppe/demo/IceE/throughput/ThroughputI.cpp @@ -33,7 +33,7 @@ ThroughputI::ThroughputI(int reduce) : } void -ThroughputI::sendByteSeq(const ByteSeq&, const Ice::Current&) +ThroughputI::sendByteSeq(const pair<const Ice::Byte*, const Ice::Byte*>&, const Ice::Current&) { } diff --git a/cppe/demo/IceE/throughput/ThroughputI.h b/cppe/demo/IceE/throughput/ThroughputI.h index b2273ad5152..06188cee20e 100644 --- a/cppe/demo/IceE/throughput/ThroughputI.h +++ b/cppe/demo/IceE/throughput/ThroughputI.h @@ -19,7 +19,7 @@ public: ThroughputI(int); - virtual void sendByteSeq(const Demo::ByteSeq&, const Ice::Current&); + virtual void sendByteSeq(const std::pair<const Ice::Byte*, const Ice::Byte*>&, const Ice::Current&); virtual Demo::ByteSeq recvByteSeq(const Ice::Current&); virtual Demo::ByteSeq echoByteSeq(const Demo::ByteSeq&, const Ice::Current&); virtual void sendStringSeq(const Demo::StringSeq&, const Ice::Current&); |