[zeromq-dev] Best way to loop over incoming messages & raw UDP support

Michal Vyskocil michal.vyskocil at gmail.com
Sat Jul 22 23:43:31 CEST 2017


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" <
alinos at 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 at lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20170722/9eef3a92/attachment.htm>


More information about the zeromq-dev mailing list