diff options
author | Gordon Sim <gsim@apache.org> | 2009-01-06 19:50:59 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2009-01-06 19:50:59 +0000 |
commit | ccd271e851f2bc2b52a7c8daaa54a06551d63dc0 (patch) | |
tree | b0ebe5326ee6a15d0d3339c60805920911a77df5 /cpp/src/qpid/sys/ConnectionCodec.h | |
parent | 9b18a2b17aaa643001c54d48445ed0d8bb7f2a4c (diff) | |
download | qpid-python-ccd271e851f2bc2b52a7c8daaa54a06551d63dc0.tar.gz |
* 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
Diffstat (limited to 'cpp/src/qpid/sys/ConnectionCodec.h')
-rw-r--r-- | cpp/src/qpid/sys/ConnectionCodec.h | 16 |
1 files changed, 2 insertions, 14 deletions
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; |