diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2010-06-14 14:50:33 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2010-06-14 14:50:33 +0000 |
| commit | e5cdd98d3765bf41a9a6bbcb72470a8077a43a64 (patch) | |
| tree | 1b9e9356e2582b43e66e8d845f7f2752b325f79d /cpp/src/qpid/sys/rdma/RdmaServer.cpp | |
| parent | 227246d4d1052242396fa08682da1ffc40f684a2 (diff) | |
| download | qpid-python-e5cdd98d3765bf41a9a6bbcb72470a8077a43a64.tar.gz | |
Combine Rdma::Buffer and ibv_sge needed to send it
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954496 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/rdma/RdmaServer.cpp')
| -rw-r--r-- | cpp/src/qpid/sys/rdma/RdmaServer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/sys/rdma/RdmaServer.cpp b/cpp/src/qpid/sys/rdma/RdmaServer.cpp index d42784fbaa..97715326d5 100644 --- a/cpp/src/qpid/sys/rdma/RdmaServer.cpp +++ b/cpp/src/qpid/sys/rdma/RdmaServer.cpp @@ -70,8 +70,8 @@ void idle(ConRec* cr, Rdma::AsynchIO& a) { void data(ConRec* cr, Rdma::AsynchIO& a, Rdma::Buffer* b) { // Echo data back Rdma::Buffer* buf = a.getBuffer(); - std::copy(b->bytes+b->dataStart, b->bytes+b->dataStart+b->dataCount, buf->bytes); - buf->dataCount = b->dataCount; + std::copy(b->bytes(), b->bytes()+b->dataCount(), buf->bytes()); + buf->dataCount(b->dataCount()); if (cr->queuedWrites.empty()) { // If can't write then full will be called and push buffer on back of queue a.queueWrite(buf); |
