qpid::cluster::ConnectionCodec Class Reference

Encapsulates the standard amqp_0_10::ConnectionCodec and sets up a cluster::Connection for the connection. More...

#include <ConnectionCodec.h>

Inheritance diagram for qpid::cluster::ConnectionCodec:
[legend]
Collaboration diagram for qpid::cluster::ConnectionCodec:
[legend]

List of all members.

Public Member Functions

 ConnectionCodec (sys::OutputControl &out, const std::string &id, Cluster &c)
size_t decode (const char *buffer, size_t size)
 Decode from buffer, return number of bytes decoded.
size_t encode (const char *buffer, size_t size)
 Encode into buffer, return number of bytes encoded.
bool canEncode ()
 Return true if we have data to encode.
void closed ()
 Network connection was closed from other end.
bool isClosed () const
framing::ProtocolVersion getVersion () const


Detailed Description

Encapsulates the standard amqp_0_10::ConnectionCodec and sets up a cluster::Connection for the connection.

The ConnectionCodec is deleted by the network layer when the connection closes. The cluster::Connection needs to be kept around until all cluster business on the connection is complete.

Definition at line 48 of file ConnectionCodec.h.


Member Function Documentation

size_t qpid::cluster::ConnectionCodec::decode ( const char *  buffer,
size_t  size 
) [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.

Implements qpid::sys::ConnectionCodec.

void qpid::cluster::ConnectionCodec::closed (  )  [virtual]

Network connection was closed from other end.

Implements qpid::sys::ConnectionCodec.


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

Generated on Fri Sep 5 00:23:52 2008 for Qpid by  doxygen 1.5.6