From 7e162fa97ef0d430714b9630121a055fe5adece9 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 5 Mar 2008 19:56:43 +0000 Subject: forked python tests for 0-10 preview and 0-10 final fixed result handling in c++ broker modified testlib in python to allow new 0-10 client to be run as well converted query tests for final 0-10 added python tests for 0-10 final to automated set for c++ broker (most unconverted still) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@634003 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/AMQFrame.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/framing/AMQFrame.cpp') diff --git a/cpp/src/qpid/framing/AMQFrame.cpp b/cpp/src/qpid/framing/AMQFrame.cpp index 3750f4a9a8..eeb658600d 100644 --- a/cpp/src/qpid/framing/AMQFrame.cpp +++ b/cpp/src/qpid/framing/AMQFrame.cpp @@ -49,12 +49,15 @@ uint32_t AMQFrame::frameOverhead() { void AMQFrame::encode(Buffer& buffer) const { + //set track first (controls on track 0, everything else on 1): + uint8_t track = getBody()->type() ? 1 : 0; + uint8_t flags = (bof ? 0x08 : 0) | (eof ? 0x04 : 0) | (bos ? 0x02 : 0) | (eos ? 0x01 : 0); buffer.putOctet(flags); buffer.putOctet(getBody()->type()); buffer.putShort(size() - 1); // Don't include end marker (it's not part of the frame itself) buffer.putOctet(0); - buffer.putOctet(0x0f & subchannel); + buffer.putOctet(0x0f & track); buffer.putShort(channel); buffer.putLong(0); body->encode(buffer); -- cgit v1.2.1