qpid::sys::ConnectionCodec Class Reference

Interface of coder/decoder for a connection of a specific protocol version. More...

#include <ConnectionCodec.h>

Inherited by qpid::amqp_0_10::Connection.

List of all members.

Public Member Functions

virtual size_t decode (const char *buffer, size_t size)=0
 Decode from buffer, return number of bytes decoded.
virtual size_t encode (const char *buffer, size_t size)=0
 Encode into buffer, return number of bytes encoded.
virtual bool canEncode ()=0
 Return true if we have data to encode.
virtual void closed ()=0
 Network connection was closed from other end.
virtual bool isClosed () const =0
virtual framing::ProtocolVersion getVersion () const =0


Detailed Description

Interface of coder/decoder for a connection of a specific protocol version.

Member Function Documentation

virtual size_t qpid::sys::ConnectionCodec::decode ( const char *  buffer,
size_t  size 
) [pure virtual]

Decode from buffer, return number of bytes decoded.

Returns:
may be less than size if there was incomplete data at the end of the buffer.

virtual void qpid::sys::ConnectionCodec::closed (  )  [pure virtual]

Network connection was closed from other end.


The documentation for this class was generated from the following file:

Generated on Thu May 15 22:24:50 2008 for Qpid by  doxygen 1.5.5