summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/rdma/RdmaIO.h
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2010-12-23 17:11:09 +0000
committerAndrew Stitcher <astitcher@apache.org>2010-12-23 17:11:09 +0000
commit632183f9ca6cf81a5720d0205fa4d410a7350a8c (patch)
treea6709d1545f26ad68523b8e14b021df2fe25c5e8 /cpp/src/qpid/sys/rdma/RdmaIO.h
parent6580b2f89fe3e2b5aae21bab83ffaefa38d04eff (diff)
downloadqpid-python-632183f9ca6cf81a5720d0205fa4d410a7350a8c.tar.gz
Factored rdma sending/receiving code out to make manipulating
credit isolated git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1052325 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/rdma/RdmaIO.h')
-rw-r--r--cpp/src/qpid/sys/rdma/RdmaIO.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/qpid/sys/rdma/RdmaIO.h b/cpp/src/qpid/sys/rdma/RdmaIO.h
index 3a543e8ad6..d5da9ee7fe 100644
--- a/cpp/src/qpid/sys/rdma/RdmaIO.h
+++ b/cpp/src/qpid/sys/rdma/RdmaIO.h
@@ -103,7 +103,7 @@ namespace Rdma {
// Constants for the peer-peer command messages
// These are sent in the high bits if the imm data of an rdma message
// The low bits are used to send the credit
- const static int FlagsMask = 0x10000000; // Mask for all flag bits - be sure to update this if you add more command bits
+ const static int FlagsMask = 0xF0000000; // Mask for all flag bits - be sure to update this if you add more command bits
const static int IgnoreData = 0x10000000; // Message contains no application data
void dataEvent();
@@ -112,6 +112,9 @@ namespace Rdma {
void doWriteCallback();
void checkDrained();
void doStoppedCallback();
+
+ void queueBuffer(Buffer* buff, int credit);
+ Buffer* extractBuffer(const QueuePairEvent& e);
};
// We're only writable if: