Discussion:
[zeromq-dev] question: why is there no zmsg_send_nowait in czmq?
Stefan Kaes
2014-04-23 14:56:16 UTC
Permalink
Hi,

I’m wondering why CZMQ doesn’t have a function for nonblocking message sending.

Was it this left out on purpose, or did nobody feel the need for it, yet?

I could make use of it in an app I’m working on.

Of course I can work around it, but I think it might be useful in general.

cheers
— stefan
Pieter Hintjens
2014-04-23 19:40:08 UTC
Permalink
In general you can use zmq_poll to know when a socket is ready for
output, in the same way as for input (which is why we rarely use
non-blocking recv either).

You can also do a zframe_send (... ZFRAME_DONTWAIT) but I've never used that...
Hi,
I’m wondering why CZMQ doesn’t have a function for nonblocking message
sending.
Was it this left out on purpose, or did nobody feel the need for it, yet?
I could make use of it in an app I’m working on.
Of course I can work around it, but I think it might be useful in general.
cheers
— stefan
_______________________________________________
zeromq-dev mailing list
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Loading...