[zeromq-dev] Thread Safe sockets
john skaller
skaller at users.sourceforge.net
Tue Feb 7 00:03:50 CET 2012
On 07/02/2012, at 8:08 AM, Gary Wright wrote:
>
>
> You could avoid the indefinitely locking and still have multi-part messages
> by changing the API such that all message parts have to be handed to/from
> the API in one call.
Coming. The only question is what data structure to hold them.
Clearly it will be an array, since C doesn't have anything else.
A wrapped C++ Vector is overkill. A specially written list or
something would pollute ZMQ interface too much.
The question is: what goes in the array? Buffers, or zmq_msg_t?
Or pointers t zmq_msg_t?
This is non-trivial issue. I will be providing the API extension in
C land only. But logically it should be done in the C++ core.
--
john skaller
skaller at users.sourceforge.net
More information about the zeromq-dev
mailing list