Can you explain a little more why you want to do this? Why not just have one socket per thread?
-Michel On Sun, Nov 25, 2012 at 3:29 PM, Stefan de Konink <[email protected]> wrote: > In order to guarantee that multipart messages generated in different > threads and different times are synchronously send we are currently > using a socket per message. This is a wasteful operation, neither we > want to buffer messages. > > Is there currently any thing available that could closely mimic a high > level connection pool? Fundamentally I am looking for something that > works like: > > socket_pool = zmq_pool(context, ZMQ_PUSH); > zmq_pool_connect(socktet, 'uri://blabla', 8); // pre-connect 8 > > socket = zmq_pool_dispatch(socket_pool); > > // do the sending > > zmq_pool_done(socket_pool, socket); > > > Stefan > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev >
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
