[zeromq-dev] about when use the message envelope

QIUCHU chqiu at landhightech.com
Sat Apr 20 11:27:43 CEST 2013


HI , everyone!

I'm just learning the ZMQ, and reading the guid.

Now I'm really  confused by the message envelope.

In the section "The DEALER to REP Combination" of chapter 3 , the guide said
we should "emulate the envelope" by ourself. In the sample "rtreq:
ROUTER-to-REQ",  the code also construct the envelope when switch the
messages between the ROUTE and REQ socket.

But in the example "rrworker, rrclient, rrborker " and "mtserver" , the code
didn't construct the message envelope, and just send the data.  Especially,
in the rrbroker and rrworker , it's alse the DEALER to REP combination ,why
it didn't construct the envelope?

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?

Thank you so much!

Best regards!

Chu
 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130420/9830242d/attachment.htm>


More information about the zeromq-dev mailing list