[zeromq-dev] Non-contiguous message thoughts
sustrik at 250bpm.com
Sun Mar 7 16:17:31 CET 2010
> I like msg groups idea, but it sounds more like an application feature.
> I was thinking about application level framing, adding a msg header,
> body and checksum. If we can setup different buffers for each msg
> segment, then sender won't have to create a contiguous block and
> receiver can avoid having to strip off header and trailer. I suppose
> this'll be useful for large messages, where copying buffers is a
Both scatter/gather approach and message group would allow you to
implement this kind of thing. Actually, they are functionally equivalent.
The reason why I prefer the message group is that it doesn't break
existing API (put asside additional ZMQ_GROUP constant).
More information about the zeromq-dev