On Thu, 2018-05-31 at 16:43 +0530, Dev Aggarwal wrote:
> I recently used ROUTER and DEALER sockets, which used multi-part
> messages
> to separate identity of sender and the message data.
> 
> I personally, found this approach quite sophisticated.
> 
> But then, I found some use for the PUB and SUB socket pair.
> I was surprised to see the examples in the guide not using multi-part
> messages.
> Instead they used concatenation to append the "TOPIC" to the main
> message
> and then filter out based on that.
> 
> Is there a specific reason for doing concatenation, instead of using
> the
> first part of a multi-part message?
> 
> Regards,
> Dev

You can use a separate frame (first one) for the topic if you wish. It
will work, but it's not mandatory.

-- 
Kind regards,
Luca Boccassi

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
zeromq-dev mailing list
[email protected]
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to