Include ZMTP properties in message metadata

Metadata are built in stream_engine now.
This makes it easy to extend metadata with user-defined properties.
This commit is contained in:
Martin Hurton
2014-05-02 12:33:26 +02:00
parent 55c06924c8
commit 8d82cc2a0b
6 changed files with 60 additions and 22 deletions

View File

@@ -30,6 +30,7 @@
#include "options.hpp"
#include "socket_base.hpp"
#include "../include/zmq.h"
#include "metadata.hpp"
namespace zmq
{
@@ -131,6 +132,9 @@ namespace zmq
size_t outsize;
i_encoder *encoder;
// Metadata to be attached to received messages. May be NULL.
metadata_t *metadata;
// When true, we are still trying to determine whether
// the peer is using versioned protocol, and if so, which
// version. When false, normal message flow has started.