[zeromq-dev] identity bug

Martin Sustrik sustrik at 250bpm.com
Tue May 25 12:46:47 CEST 2010


Pieter Hintjens wrote:
> On Tue, May 25, 2010 at 12:34 PM, Martin Sustrik <sustrik at 250bpm.com> wrote:
> 
>>> "Yes" is a fine answer but it's not clear what question you were
>>> answering... :-)
>> Yes, all those socket types belong to the same pattern :)
> 
> OK, sorry to be pedantic, but do they need to belong to the same pattern?

Yes. REQ is just a wrapper on top of XREQ and REP is just a wrapper on 
top of XREP.

What the wrapper does is that it disallows to hold several request in 
air in the same time. As a trade-off, it's simpler to use.

While XREQ/XREP model requires user to mess with "reply-to" part of the 
message by hand (strip it from request and attach it to reply), REQ/REP 
do that automatically behind the scenes.

Martin





More information about the zeromq-dev mailing list