From 14654e5360b72adf1704838b3820c7d1fc860e8e Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 6 Oct 2006 16:17:06 +0000 Subject: Decoupled routing from the channel and message classes. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@453657 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/broker/src/SessionHandlerImpl.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cpp/broker/src/SessionHandlerImpl.cpp') diff --git a/cpp/broker/src/SessionHandlerImpl.cpp b/cpp/broker/src/SessionHandlerImpl.cpp index eb8f37030c..63a42a7fd6 100644 --- a/cpp/broker/src/SessionHandlerImpl.cpp +++ b/cpp/broker/src/SessionHandlerImpl.cpp @@ -18,8 +18,9 @@ #include #include "SessionHandlerImpl.h" #include "FanOutExchange.h" -#include "TopicExchange.h" #include "HeadersExchange.h" +#include "Router.h" +#include "TopicExchange.h" #include "assert.h" using namespace std::tr1; @@ -153,11 +154,11 @@ void SessionHandlerImpl::closed(){ } void SessionHandlerImpl::handleHeader(u_int16_t channel, AMQHeaderBody::shared_ptr body){ - getChannel(channel)->handleHeader(body, exchanges); + getChannel(channel)->handleHeader(body, Router(*exchanges)); } void SessionHandlerImpl::handleContent(u_int16_t channel, AMQContentBody::shared_ptr body){ - getChannel(channel)->handleContent(body, exchanges); + getChannel(channel)->handleContent(body, Router(*exchanges)); } void SessionHandlerImpl::handleHeartbeat(AMQHeartbeatBody::shared_ptr body){ -- cgit v1.2.1