[zeromq-dev] Usage of POLLOUT on stream sockets

Nils Braun nils.braun at kit.edu
Wed Jul 10 07:55:48 CEST 2019


Dear zmq experts,

I would like to connect my ZeroMQ application with a non-zeromq one via 
a ZMQ_STREAM socket type.

I basically just need to send out messages to the non-zeromq socket. Is 
it possible to test if the socket is writable and a send would not block 
via the usage of poll (with POLLOUT)?

I tested it in a small example and it seems the poll call (with POLLOUT) 
always returns "yes" although a subsequent call to actually send the 
message blocks. Is this intended behavior?

Thank you,
Nils




More information about the zeromq-dev mailing list