On Tue, Oct 2, 2012 at 11:33 AM, Michael Haberler <[email protected]> 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.
-Pieter
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev