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/RdmaClient.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/RdmaClient.cpp')
| -rw-r--r-- | cpp/src/qpid/sys/rdma/RdmaClient.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/qpid/sys/rdma/RdmaClient.cpp b/cpp/src/qpid/sys/rdma/RdmaClient.cpp index c95cda7b37..d33c609344 100644 --- a/cpp/src/qpid/sys/rdma/RdmaClient.cpp +++ b/cpp/src/qpid/sys/rdma/RdmaClient.cpp @@ -67,8 +67,8 @@ vector<char> testString; void write(Rdma::AsynchIO& aio) { while (aio.writable() && aio.bufferAvailable() && smsgs < target) { Rdma::Buffer* b = aio.getBuffer(); - std::copy(testString.begin(), testString.end(), b->bytes); - b->dataCount = msgsize; + std::copy(testString.begin(), testString.end(), b->bytes()); + b->dataCount(msgsize); aio.queueWrite(b); ++smsgs; sbytes += msgsize; @@ -81,7 +81,7 @@ void dataError(Rdma::AsynchIO&) { void data(Poller::shared_ptr p, Rdma::AsynchIO& aio, Rdma::Buffer* b) { ++rmsgs; - rbytes += b->dataCount; + rbytes += b->dataCount(); // When all messages have been recvd stop if (rmsgs < target) { @@ -99,7 +99,7 @@ void full(Rdma::AsynchIO& a, Rdma::Buffer* b) { // Don't need to keep buffer just adjust the counts --smsgs; - sbytes -= b->dataCount; + sbytes -= b->dataCount(); // Give buffer back a.returnBuffer(b); |
