On 08/19/2011 07:08 PM, Ian Barber wrote:
> I think you have the tools you need in the API - look at the ZMQ_LINGER
> sockopt for termination, and for sending data you can either use send
> with the flag ZMQ_NOBLOCK to guarantee no blocking, or poll the socket
> first to see whether a message would block on send.
+1
s = zmq_socket (ZMQ_PUSH);
...
if (zmq_send (s, msg, ZMQ_NOBLOCK) == EAGAIN)
drop_message (msg);
Martin
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev