Introduce abstract interface for message encoder/decoder

This commit is contained in:
Martin Hurton
2012-09-04 19:44:20 +02:00
parent a224c97329
commit 8672f5829e
6 changed files with 142 additions and 21 deletions

View File

@@ -28,8 +28,8 @@
#include "i_engine.hpp"
#include "i_msg_sink.hpp"
#include "io_object.hpp"
#include "encoder.hpp"
#include "decoder.hpp"
#include "i_encoder.hpp"
#include "i_decoder.hpp"
#include "options.hpp"
#include "../include/zmq.h"
@@ -105,12 +105,12 @@ namespace zmq
unsigned char *inpos;
size_t insize;
decoder_t decoder;
i_decoder *decoder;
bool input_error;
unsigned char *outpos;
size_t outsize;
encoder_t encoder;
i_encoder *encoder;
// When true, we are still trying to determine whether
// the peer is using versioned protocol, and if so, which