From b0f3edfa2a68ccf34aa7a555d0d37c2e17b8421b Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 9 May 2008 18:46:17 +0000 Subject: Support for 0-10 sessions, not yet integrated. Misc minor fixes. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@654913 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/Proxy.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'cpp/src/qpid/framing/Proxy.cpp') diff --git a/cpp/src/qpid/framing/Proxy.cpp b/cpp/src/qpid/framing/Proxy.cpp index b47060028f..6b37fb368d 100644 --- a/cpp/src/qpid/framing/Proxy.cpp +++ b/cpp/src/qpid/framing/Proxy.cpp @@ -22,16 +22,21 @@ namespace qpid { namespace framing { +Proxy::Proxy(FrameHandler& h) : out(&h) {} + Proxy::~Proxy() {} void Proxy::send(const AMQBody& b) { AMQFrame f(b); - out.handle(f); + out->handle(f); } - ProtocolVersion Proxy::getVersion() const { return ProtocolVersion(); } +FrameHandler& Proxy::getHandler() { return *out; } + +void Proxy::setHandler(FrameHandler& f) { out=&f; } + }} // namespace qpid::framing -- cgit v1.2.1