diff options
Diffstat (limited to 'qpid/cpp/src/qpid/sys/ConnectionCodec.h')
-rw-r--r-- | qpid/cpp/src/qpid/sys/ConnectionCodec.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/qpid/cpp/src/qpid/sys/ConnectionCodec.h b/qpid/cpp/src/qpid/sys/ConnectionCodec.h index b1b047d2cc..7f5e2f831c 100644 --- a/qpid/cpp/src/qpid/sys/ConnectionCodec.h +++ b/qpid/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; |