[zeromq-dev] Multi-part messages

Martin Sustrik sustrik at 250bpm.com
Tue Apr 6 22:15:29 CEST 2010


Martin Sustrik wrote:

> Now think of getting ZMQ_MORE socket option as retrieving the state of 
> socket state machine. Suddenly it doesn't feel that wrong.
> 
> Same logic applies to sending messages. ZMQ_MORE option is used to 
> switch socket's state machine between "ready for sending new message" 
> and "in process of sending a multi-part message" states.

I forgot to say that making ZMQ_MORE a socket option would definitely 
mean stripping if from the message when it's received.

Thus, messages users are dealing with would have no "continuation bit", 
they would remain simple BLOBs with no special properties.

Martin



More information about the zeromq-dev mailing list