[zeromq-dev] [Q] proper message sequence for XREQ to XREP and back again
jon at totient.co.uk
Wed Aug 25 22:49:31 CEST 2010
Chuck Remes wrote:
> Slight correction. You *should* prepend your original message with a null packet so that the server at the end of the line can see the separator/delimiter between the routing info and the body parts.
Having just followed yr thread, I realised that this means the REQ
socket type must add the null delimiter for you, and sure enough the
code is there to do that.
It generates an empty prefix.
It's a bit awkward that you have to remember to do it manually with XREQ
and presumably set the more flag as well.
More information about the zeromq-dev