From a179ded965c5cc70a0666d07737c38c67c1558c1 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Mon, 2 Mar 2009 23:30:08 +0000 Subject: Replicate connection decoder fragments to new members. Refactoring: - Merge Decoder into ConnectionMap. - Process cluster controls in event queue thread. - Use counter not pointer for connection ID, avoid re-use. - Do all processing in event queue thread to avoid races (temporary pending performance measurements) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749473 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/FrameDecoder.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/framing/FrameDecoder.h') diff --git a/cpp/src/qpid/framing/FrameDecoder.h b/cpp/src/qpid/framing/FrameDecoder.h index 7f974dadc3..961cc666a9 100644 --- a/cpp/src/qpid/framing/FrameDecoder.h +++ b/cpp/src/qpid/framing/FrameDecoder.h @@ -35,9 +35,16 @@ class FrameDecoder { public: bool decode(Buffer& buffer); - AMQFrame frame; + const AMQFrame& getFrame() const { return frame; } + AMQFrame& getFrame() { return frame; } + + void setFragment(const char*, size_t); + std::pair getFragment() const; + private: std::vector fragment; + AMQFrame frame; + }; }} // namespace qpid::framing -- cgit v1.2.1