[zeromq-dev] about when use the message envelope

Pieter Hintjens ph at imatix.com
Sat Apr 20 12:53:40 CEST 2013


Hi Chu,

> So my question is when I need construct the envelope by myself?  And why
> some example didn't do it and some do it, what's the different?

When you talk to a REQ or REP socket you need to send and receive the
envelope. If you're passing messages along (a proxy) like mtserver,
you just read the multipart data and send it, without looking in more
detail. If you are an end point you have to actually consume and/or
produce the envelope correctly.

-Pieter



More information about the zeromq-dev mailing list