[zeromq-dev] missing events ZMQ_FD / ZMQ_EVENTS

Paul Colomiets paul at colomiets.name
Wed May 2 11:27:06 CEST 2012

Hi Gerhard,

On Wed, May 2, 2012 at 10:11 AM, Gerhard Lipp <gelipp at googlemail.com> wrote:
> hello paul!
> i dont understand the background of your approach. why should the src
> fd's io handler check the dst's events (and vice versa)?

It's the simplest way I've found to solve a problem.

> even if this worked in this scenario, wouldn't it be a coincidence?

No, it's not coincidence.

> well, at least it is better than busy waiting / polling ...

Yes. There are various way to optimize presented code, I've
just picked up something on to of my head.

On Wed, May 2, 2012 at 11:26 AM, Gerhard Lipp <gelipp at googlemail.com> wrote:
> btw, using the build in poller just works:

Yes the builtin poller works in intuitive way.
ZMQ_FD is meant for experts. So if you don't
understand how it works, you can just use
builtin poller without the problems.


More information about the zeromq-dev mailing list