diff options
author | Gordon Sim <gsim@apache.org> | 2007-07-24 14:27:31 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2007-07-24 14:27:31 +0000 |
commit | a6303894d7f9a24df4a691af3ce94647c033ebff (patch) | |
tree | 943b75df7528c9fbff6b3170c3c4b66758bf22ad /cpp/src/qpid/broker/SemanticHandler.cpp | |
parent | 9f120205e0d7a0b2666b9fd21a5296db07e32fd8 (diff) | |
download | qpid-python-a6303894d7f9a24df4a691af3ce94647c033ebff.tar.gz |
Initial support for latest approved 0-10 xml (with some transitional hacks included).
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@559059 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/SemanticHandler.cpp')
-rw-r--r-- | cpp/src/qpid/broker/SemanticHandler.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/SemanticHandler.cpp b/cpp/src/qpid/broker/SemanticHandler.cpp index f616ec2db8..2b1de1bbc0 100644 --- a/cpp/src/qpid/broker/SemanticHandler.cpp +++ b/cpp/src/qpid/broker/SemanticHandler.cpp @@ -75,7 +75,7 @@ void SemanticHandler::handleMethodInContext(boost::shared_ptr<qpid::framing::AMQ } } -void SemanticHandler::complete(u_int32_t mark) +void SemanticHandler::complete(uint32_t mark, uint16_t /*range- not decoded correctly yet*/) { //just record it for now (will eventually need to use it to ack messages): outgoing.lwm = SequenceNumber(mark); @@ -85,7 +85,10 @@ void SemanticHandler::flush() { //flush doubles as a sync to begin with - send an execution.complete incoming.lwm = incoming.hwm; - send(make_shared_ptr(new ExecutionCompleteBody(getVersion(), incoming.hwm.getValue()))); + if (isOpen()) { + /*use dummy value for range which is not yet encoded correctly*/ + send(make_shared_ptr(new ExecutionCompleteBody(getVersion(), incoming.hwm.getValue(), 0))); + } } void SemanticHandler::handleL4(boost::shared_ptr<qpid::framing::AMQMethodBody> method, |