From acd71049924d4529797427396568056ce9c54125 Mon Sep 17 00:00:00 2001 From: Gudmundur Adalsteinsson Date: Fri, 24 Apr 2020 20:27:28 +0000 Subject: [PATCH] Problem: Missing reference to rfc Solution: Add link --- zmq_addon.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zmq_addon.hpp b/zmq_addon.hpp index 5c783f2..cd21b60 100644 --- a/zmq_addon.hpp +++ b/zmq_addon.hpp @@ -167,7 +167,8 @@ send_multipart(socket_ref s, Range &&msgs, send_flags flags = send_flags::none) can not fit in an unsigned 32 bit integer. The encoding is compatible with that used by the CZMQ function - zmsg_encode(). Each part consists of a size followed by the data. + zmsg_encode(), see https://rfc.zeromq.org/spec/50/. + Each part consists of a size followed by the data. These are placed contiguously into the output message. A part of size less than 255 bytes will have a single byte size value. Larger parts will have a five byte size value with the first byte @@ -241,7 +242,7 @@ message_t encode(const Range &parts) lead to exceeding the message data bounds. The decoding assumes the message is encoded in the manner - performed by zmq::encode(). + performed by zmq::encode(), see https://rfc.zeromq.org/spec/50/. */ template OutputIt decode(const message_t &encoded, OutputIt out) {