From d206fe2d45399f12d0b827832e38a813d563c262 Mon Sep 17 00:00:00 2001 From: metadings Date: Wed, 14 Jan 2015 13:26:48 +0100 Subject: [PATCH] Upgrading zmq_msg_t to 64 bytes --- include/zmq.h | 2 +- src/msg.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/zmq.h b/include/zmq.h index 4064b91e..010985bf 100644 --- a/include/zmq.h +++ b/include/zmq.h @@ -204,7 +204,7 @@ ZMQ_EXPORT int zmq_ctx_destroy (void *context); /* 0MQ message definition. */ /******************************************************************************/ -typedef struct zmq_msg_t {unsigned char _ [48];} zmq_msg_t; +typedef struct zmq_msg_t {unsigned char _ [64];} zmq_msg_t; typedef void (zmq_free_fn) (void *data, void *hint); diff --git a/src/msg.hpp b/src/msg.hpp index ea2bb4e4..04eb8f63 100644 --- a/src/msg.hpp +++ b/src/msg.hpp @@ -92,7 +92,7 @@ namespace zmq // Size in bytes of the largest message that is still copied around // rather than being reference-counted. - enum { msg_t_size = 48 }; + enum { msg_t_size = 64 }; enum { max_vsm_size = msg_t_size - (8 + sizeof (metadata_t *) + 3) }; // Shared message buffer. Message data are either allocated in one