[zeromq-dev] description of REQ/REP state machine?

Pieter Hintjens ph at imatix.com
Tue Oct 2 11:39:45 CEST 2012

On Tue, Oct 2, 2012 at 11:33 AM, Michael Haberler <mail17 at mah.priv.at> wrote:

> I'd need a concise description of the REQ/REP state machine - which socket may send which message when, and the states a connection goes through
> is there such a thing or is it reading zeromq/src/{req,rep}.cpp?

Calling it a "state machine" is a little tortuous. It's a single bit
flag: on a REQ socket, ready to send to network, or waiting for
response from network; on a REP socket, ready to receive from network,
or waiting to reply to network.

Which just prevents the caller sending twice, or receiving twice in a row.


More information about the zeromq-dev mailing list