[zeromq-dev] czmq 2.2->3.0 - how to handle a fd with a zloop_reader?

Pieter Hintjens ph at imatix.com
Tue May 19 09:11:38 CEST 2015


In theory the 3.x API fully supports the 2.x API (though parts of that
were deprecated).

This code should work as-is. If it doesn't, we'll investigate.

-Pieter

On Tue, May 19, 2015 at 2:14 AM, Michael Haberler <mail17 at mah.priv.at> wrote:
> I have this APIv2.2 fragment:
>
>   zmq_pollitem_t signal_poller = { 0, self->signal_fd, ZMQ_POLLIN };
>   zloop_poller(loop, &signal_poller, handle_signal, self);
>
> Am I correct assuming the fd polling API has not changed from 2->3, and should be left as-is? or is there some zloop_reader stunt instead?
>
> thanks in advance
>
> Michael
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev



More information about the zeromq-dev mailing list