From ccd271e851f2bc2b52a7c8daaa54a06551d63dc0 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 6 Jan 2009 19:50:59 +0000 Subject: * Cyrus SASL intgeration for c++ client * SASL security layer support for c++ client and broker git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@732082 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/sys/ConnectionCodec.h | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'cpp/src/qpid/sys/ConnectionCodec.h') diff --git a/cpp/src/qpid/sys/ConnectionCodec.h b/cpp/src/qpid/sys/ConnectionCodec.h index b1b047d2cc..7f5e2f831c 100644 --- a/cpp/src/qpid/sys/ConnectionCodec.h +++ b/cpp/src/qpid/sys/ConnectionCodec.h @@ -21,6 +21,7 @@ * under the License. * */ +#include "Codec.h" #include "qpid/framing/ProtocolVersion.h" namespace qpid { @@ -34,23 +35,10 @@ class OutputControl; * Interface of coder/decoder for a connection of a specific protocol * version. */ -class ConnectionCodec { +class ConnectionCodec : public Codec { public: virtual ~ConnectionCodec() {} - /** Decode from buffer, return number of bytes decoded. - * @return may be less than size if there was incomplete - * data at the end of the buffer. - */ - virtual size_t decode(const char* buffer, size_t size) = 0; - - - /** Encode into buffer, return number of bytes encoded */ - virtual size_t encode(const char* buffer, size_t size) = 0; - - /** Return true if we have data to encode */ - virtual bool canEncode() = 0; - /** Network connection was closed from other end. */ virtual void closed() = 0; -- cgit v1.2.1