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

Michael Haberler mail17 at mah.priv.at
Tue May 19 10:35:41 CEST 2015


> Am 19.05.2015 um 09:11 schrieb Pieter Hintjens <ph at imatix.com>:
> 
> 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.

It does - conversion complete, water level below chin.

Is there a way to redirect czmq logging to a custom log handler (used around here) - I see stdout/stderr options, or syslog, but no custom handler

thanks!

- Michael



> 
> -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
> _______________________________________________
> 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