diff options
Diffstat (limited to 'cpp/lib/common/framing/AMQMethodBody.h')
-rw-r--r-- | cpp/lib/common/framing/AMQMethodBody.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/lib/common/framing/AMQMethodBody.h b/cpp/lib/common/framing/AMQMethodBody.h index 9f859046f8..ff09ee60e1 100644 --- a/cpp/lib/common/framing/AMQMethodBody.h +++ b/cpp/lib/common/framing/AMQMethodBody.h @@ -53,6 +53,13 @@ class AMQMethodBody : public AMQBody virtual void invoke(AMQP_ServerOperations&, const MethodContext&); bool match(AMQMethodBody* other) const; + + /** + * Wrap this method in a frame and send using the current context. + * Note the frame takes ownership of the body, it will be deleted. + */ + virtual void send(const MethodContext& context); + protected: static u_int32_t baseSize() { return 4; } |