[zeromq-dev] error in the guide?
Lucas Hope
lucas.r.hope at gmail.com
Tue Jan 24 01:01:08 CET 2012
Hi Chuck,
I think the only requirement for a null message is for a REP/REQ socket.
Those are the sockets that (I think) mandate the null delimiter for the
envelope part.
In this example, there are no intermediate devices between the router and
the workers, and so the number of envelopes is 1, and hence there is no
need to delimit - since the workers are dealers.
I do think this is bad coding style in the examples, and it caused me
confusion when I first started using ZMQ.
/slowdayatoffice
-Luke
On Tue, Jan 24, 2012 at 9:24 AM, Chuck Remes <cremes.devlist at mac.com> wrote:
> On IRC today, someone was trying to get explicit routing between ROUTER
> and DEALER sockets working. They were referring to this section of the
> guide:
>
> http://zguide.zeromq.org/page:all#toc49
>
> There is no mention made of separating the routing frames/envelope from
> the application frames with a null message delimiter. The example code
> given also doesn't do this.
>
> Isn't that wrong? Shouldn't there *always* be a null message part between
> the routing envelope and the application frames?
>
> cr
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
--
---------------------------------------------------
Dr Lucas Hope - lucas.r.hope at skype
Machine Learning and Software Engineering Consultant
Melbourne, Australia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120124/df455dad/attachment.htm>
More information about the zeromq-dev
mailing list