summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/framing/AMQFrame.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-09-03 03:21:00 +0000
committerAlan Conway <aconway@apache.org>2008-09-03 03:21:00 +0000
commite8f6b7cd234088e7c33e42eb10e29719ea8e8aa9 (patch)
tree2d7df29ebba337fbbe28aa7716f0e32ff9e24c70 /cpp/src/qpid/framing/AMQFrame.cpp
parent05b6583dc0d080d6bc5a0cca09218bb045090daf (diff)
downloadqpid-python-e8f6b7cd234088e7c33e42eb10e29719ea8e8aa9.tar.gz
Cluster multicasts buffers rather than frames.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@691489 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/framing/AMQFrame.cpp')
-rw-r--r--cpp/src/qpid/framing/AMQFrame.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/src/qpid/framing/AMQFrame.cpp b/cpp/src/qpid/framing/AMQFrame.cpp
index c1fc647b52..662b3574ff 100644
--- a/cpp/src/qpid/framing/AMQFrame.cpp
+++ b/cpp/src/qpid/framing/AMQFrame.cpp
@@ -45,6 +45,13 @@ uint32_t AMQFrame::frameOverhead() {
return 12 /*frame header*/;
}
+uint16_t AMQFrame::DECODE_SIZE_MIN=4;
+
+uint16_t AMQFrame::decodeSize(char* data) {
+ Buffer buf(data+2, DECODE_SIZE_MIN);
+ return buf.getShort();
+}
+
void AMQFrame::encode(Buffer& buffer) const
{
//set track first (controls on track 0, everything else on 1):