summaryrefslogtreecommitdiff
path: root/cpp/lib/broker/Connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/lib/broker/Connection.cpp')
-rw-r--r--cpp/lib/broker/Connection.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/lib/broker/Connection.cpp b/cpp/lib/broker/Connection.cpp
index 6694a0ed13..000199a65e 100644
--- a/cpp/lib/broker/Connection.cpp
+++ b/cpp/lib/broker/Connection.cpp
@@ -63,6 +63,11 @@ void Connection::received(qpid::framing::AMQFrame* frame){
getChannel(frame->getChannel()).handleBody(frame->getBody());
}
+void Connection::close(ReplyCode code, const string& text, ClassId classId, MethodId methodId){
+ client->getConnection().close(MethodContext(&getChannel(0)), code, text, classId, methodId);
+ getOutput().close();
+}
+
// TODO aconway 2007-02-02: Should be delegated to the BrokerAdapter
// as it is part of the protocol.
void Connection::initiated(qpid::framing::ProtocolInitiation* header) {