Hi, Yes, using zpoller is the most effective way as it use the best method to poll for the socket on your operating system.
Dne 22. 7. 2017 11:00 odpoledne napsal uživatel "Andrew Linos" < ali...@gmx.co.uk>: Hi, I started recently using ZeroMQ (and CZMQ) and I have two questions -- any advice greatly appreciated. 1) I have a PUB/SUB pair -- what's the most efficient way to loop over the incoming messages if we want to achieve maximum efficiency? Right now I have created an actor for the PUB end, an actor for the SUB, and a zpoller that polls the SUB socket in a loop, and receives one message at a time. Is that (ie, using one blocking call to the zpoller instance per incoming message) the correct way to do thing? 2) I've read about the STREAM socket type, to talk with non-0mq clients via TCP, and I was wondering if there's anything similar for UDP? ie, let's say a non-0mq server sends out data via multicast UDP, can I receive it somehow via a 0mq socket? Thanks, Andrew. _______________________________________________ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________ zeromq-dev mailing list zeromq-dev@lists.zeromq.org https://lists.zeromq.org/mailman/listinfo/zeromq-dev