summaryrefslogtreecommitdiff
path: root/cpp/lib/broker/Connection.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-02-09 16:46:16 +0000
committerGordon Sim <gsim@apache.org>2007-02-09 16:46:16 +0000
commite754770e56a9ff0df5d5be73b04ed658cdbc5855 (patch)
tree121acfabebc179ce6448b98e4c83b7dbfcb54940 /cpp/lib/broker/Connection.cpp
parent0b3933e6315389c5d32fb7abea5556c15440f888 (diff)
downloadqpid-python-e754770e56a9ff0df5d5be73b04ed658cdbc5855.tar.gz
Handle invalid channels.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@505360 13f79535-47bb-0310-9956-ffa450edef68
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) {