summaryrefslogtreecommitdiff
path: root/cpp/lib/common/framing/AMQMethodBody.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/lib/common/framing/AMQMethodBody.cpp')
-rw-r--r--cpp/lib/common/framing/AMQMethodBody.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/lib/common/framing/AMQMethodBody.cpp b/cpp/lib/common/framing/AMQMethodBody.cpp
index 0c77a1c64a..73b729b945 100644
--- a/cpp/lib/common/framing/AMQMethodBody.cpp
+++ b/cpp/lib/common/framing/AMQMethodBody.cpp
@@ -18,6 +18,7 @@
* under the License.
*
*/
+#include <AMQFrame.h>
#include <AMQMethodBody.h>
#include <QpidError.h>
#include "AMQP_MethodVersionMap.h"
@@ -59,5 +60,8 @@ void AMQMethodBody::decode(Buffer& buffer, u_int32_t /*size*/) {
decodeContent(buffer);
}
+void AMQMethodBody::send(const MethodContext& context) {
+ context.out->send(new AMQFrame(version, context.channelId, this));
+}
}} // namespace qpid::framing