#include <ConnectionCodec.h>
Public Member Functions | |
ConnectionCodec (sys::OutputControl &out, const std::string &id, Cluster &c, bool catchUp) | |
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 |
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.
size_t qpid::cluster::ConnectionCodec::decode | ( | const char * | buffer, | |
size_t | size | |||
) | [virtual] |
Decode from buffer, return number of bytes decoded.
Implements qpid::sys::ConnectionCodec.
void qpid::cluster::ConnectionCodec::closed | ( | ) | [virtual] |