mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-28 11:31:56 +01:00
Refactored codecs to match ZMTP version numbers
This commit is contained in:
@@ -20,25 +20,22 @@
|
||||
#ifndef __ZMQ_V1_ENCODER_HPP_INCLUDED__
|
||||
#define __ZMQ_V1_ENCODER_HPP_INCLUDED__
|
||||
|
||||
#include "msg.hpp"
|
||||
#include "i_msg_source.hpp"
|
||||
#include "encoder.hpp"
|
||||
|
||||
namespace zmq
|
||||
{
|
||||
|
||||
class i_msg_source;
|
||||
|
||||
// Encoder for 0MQ framing protocol. Converts messages into data stream.
|
||||
|
||||
// Encoder for ZMTP/1.0 protocol. Converts messages into data batches.
|
||||
|
||||
class v1_encoder_t : public encoder_base_t <v1_encoder_t>
|
||||
{
|
||||
public:
|
||||
|
||||
v1_encoder_t (size_t bufsize_, i_msg_source *msg_source_);
|
||||
virtual ~v1_encoder_t ();
|
||||
v1_encoder_t (size_t bufsize_);
|
||||
~v1_encoder_t ();
|
||||
|
||||
virtual void set_msg_source (i_msg_source *msg_source_);
|
||||
void set_msg_source (i_msg_source *msg_source_);
|
||||
|
||||
private:
|
||||
|
||||
@@ -47,7 +44,7 @@ namespace zmq
|
||||
|
||||
i_msg_source *msg_source;
|
||||
msg_t in_progress;
|
||||
unsigned char tmpbuf [9];
|
||||
unsigned char tmpbuf [10];
|
||||
|
||||
v1_encoder_t (const v1_encoder_t&);
|
||||
const v1_encoder_t &operator = (const v1_encoder_t&);
|
||||
|
||||
Reference in New Issue
Block a user