From 6aeb03f0f5ac7ede957995fc784367a30920c683 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 18 Sep 2007 19:43:29 +0000 Subject: Refactor HandlerImpl to use Session rather than CoreRefs. Remove most uses of ChannelAdapter in broker code. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@577027 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/SessionHandler.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'cpp/src/qpid/broker/SessionHandler.cpp') diff --git a/cpp/src/qpid/broker/SessionHandler.cpp b/cpp/src/qpid/broker/SessionHandler.cpp index e46f11d98c..d4f8c25892 100644 --- a/cpp/src/qpid/broker/SessionHandler.cpp +++ b/cpp/src/qpid/broker/SessionHandler.cpp @@ -29,18 +29,10 @@ namespace qpid { namespace broker { using namespace framing; -// FIXME aconway 2007-08-31: the SessionHandler should create its -// private proxy directly on the connections out handler. -// Session/channel methods should not go thru the other layers. -// Need to get rid of ChannelAdapter and allow proxies to be created -// directly on output handlers. -// -framing::AMQP_ClientProxy& SessionHandler::getProxy() { - return session->getProxy(); -} - SessionHandler::SessionHandler(Connection& c, ChannelId ch) - : InOutHandler(0, &c.getOutput()), connection(c), channel(ch), ignoring(false), channelHandler(*this) {} + : InOutHandler(0, &c.getOutput()), + connection(c), channel(ch), proxy(out), + ignoring(false), channelHandler(*this) {} SessionHandler::~SessionHandler() {} -- cgit v1.2.1