[zeromq-dev] CZMQ and Server and Client Sockets

Doron Somech somdoron at gmail.com
Mon Aug 17 15:43:45 CEST 2015


wIt is not level triggered by himself, only together with zmq_poll. pollfd
is like socket fd which is edge.

However we can still do it, it will be a little complicate. We need to
reset the pollfd immediately after calling zmq_poll. This will be edge
triggered, to make it level we have to check all events before calling
zmq_poll again.

we can have a method that do this, so binding can implement manually or use
something like:

zmq_pollfd_poll (void *p, zmq_poll_item *items, int *nitems, long timeout);


On Mon, Aug 17, 2015 at 4:16 PM, KIU Shueng Chuan <nixchuan at gmail.com>
wrote:

> If the pollfd is level triggered, then we could just use the system
> poll/select directly. Then check all thread safe zsocks attached to the
> pollfd for ZMQ_EVENTS.
>
> It would thus be trivial to use thread safe zsocks with other event loops.
> If pollfd is level triggered, that is.
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150817/c2d00926/attachment.htm>


More information about the zeromq-dev mailing list