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 <[email protected]> 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
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>



-- 
---------------------------------------------------
Dr Lucas Hope - lucas.r.hope@skype
Machine Learning and Software Engineering Consultant
Melbourne, Australia
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to