diff options
Diffstat (limited to 'cpp/src/qpid/framing/SendContent.h')
-rw-r--r-- | cpp/src/qpid/framing/SendContent.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cpp/src/qpid/framing/SendContent.h b/cpp/src/qpid/framing/SendContent.h index a88319e2f9..05b5838c62 100644 --- a/cpp/src/qpid/framing/SendContent.h +++ b/cpp/src/qpid/framing/SendContent.h @@ -39,11 +39,14 @@ class SendContent mutable FrameHandler& handler; const uint16_t channel; const uint16_t maxFrameSize; + uint expectedFrameCount; + uint frameCount; - void sendFragment(const AMQContentBody& body, uint32_t offset, uint16_t size) const; + void sendFragment(const AMQContentBody& body, uint32_t offset, uint16_t size, bool first, bool last) const; + void setFlags(AMQFrame& f, bool first, bool last) const; public: - SendContent(FrameHandler& _handler, uint16_t channel, uint16_t _maxFrameSize); - void operator()(AMQFrame& f) const; + SendContent(FrameHandler& _handler, uint16_t channel, uint16_t _maxFrameSize, uint frameCount); + void operator()(const AMQFrame& f); }; } |