diff options
Diffstat (limited to 'src/zmq_decoder.hpp')
-rw-r--r-- | src/zmq_decoder.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/zmq_decoder.hpp b/src/zmq_decoder.hpp index 5d9133b..dfabece 100644 --- a/src/zmq_decoder.hpp +++ b/src/zmq_decoder.hpp @@ -34,11 +34,15 @@ namespace zmq // If prefix is not NULL, it will be glued to the beginning of every // decoded message. - zmq_decoder_t (size_t bufsize_, void *prefix_, size_t prefix_size_); + zmq_decoder_t (size_t bufsize_); ~zmq_decoder_t (); void set_inout (struct i_inout *destination_); + // Once called, all decoded messages will be prefixed by the specified + // prefix. + void add_prefix (unsigned char *prefix_, size_t prefix_size_); + private: bool one_byte_size_ready (); |