[zeromq-dev] PUB/SUB socket result in server's crash

Martin Sustrik sustrik at 250bpm.com
Fri Jul 22 09:39:58 CEST 2011


On 07/22/2011 09:37 AM, yy l wrote:
> Thank you very much!
> I guess I understand you. But my last question is that can I use
> server's PUB socket to call zmq_recv() to process the queued commands.
> In ZMQ docs, it is said that PUB socket is only used to send data.
> So, is it conflicting?

You can use zmq_send(). The only requirement is to pass control to 
libzmq occasionally so that it can process commands.

Martin



More information about the zeromq-dev mailing list