summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/framing/Proxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/framing/Proxy.cpp')
-rw-r--r--cpp/src/qpid/framing/Proxy.cpp9
1 files changed, 7 insertions, 2 deletions
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