diff options
author | Gordon Sim <gsim@apache.org> | 2006-10-06 16:17:06 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2006-10-06 16:17:06 +0000 |
commit | 14654e5360b72adf1704838b3820c7d1fc860e8e (patch) | |
tree | 0342b1cedd2262809edb951fc234bc75deb20533 /cpp/broker/src/SessionHandlerImpl.cpp | |
parent | 55ad18a1c847c1b14d48c56ce7ee253aadf86ef7 (diff) | |
download | qpid-python-14654e5360b72adf1704838b3820c7d1fc860e8e.tar.gz |
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
Diffstat (limited to 'cpp/broker/src/SessionHandlerImpl.cpp')
-rw-r--r-- | cpp/broker/src/SessionHandlerImpl.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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 <iostream> #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){ |