Hi list !<div><br></div><div>I am having a very difficult time creating an AvahiPoll API that should be used with an edge triggered event loop (zeroMQ).<br clear="all"><div><br></div><div>I must confess that I do not understand why the Avahi API is so complicated (compared with dns-sd which is already not trivial). Why can&#39;t we simply connect to the daemon with a socket (once for each registration/browse) ? We would then only need one file descriptor per operation and either block on recv or insert the file descriptor in an event loop. This is the abstraction that dns-sd manages to provide with DNSServiceRefSockFD.</div>

<div><br></div><div>Anyway, before I start to fork and create pipes, I suspect my API to not work because of this edge vs level triggering. Is there a way to &quot;empty&quot; the content of newly created AvahiWatch and AvahiTimeout before registering the file descriptors inside the poll loop ?</div>
<div><br></div><div>Cheers,</div><div><br></div><div>                                                               Gaspard</div><br>
</div>