Well, the easiest way you can do it now is just ask MHD to run in
'EPOLL' mode and grab the epoll() FD. Then you can select/poll/epoll on
the MHD epoll() FD.  You won't get detailed information about add/remove
events from MHD, but you'll then only have to deal with one FD for all
of MHD in your event set ever, and your overall big-O complexity for all
operations should also be perfect.

My 2 cents

Christian

On 06/03/2015 04:33 AM, Simon Newton wrote:
> Digging up a thread from the past...
> 
> Is the codebase in a better shape to make this change now? We've run
> into this again now that we've switched to using kevent rather than
> select.
> 
> 
> If you're looking for existing APIs to model this from,  Avahi has a
> watch API [1] which provides fd notifications, and that has worked
> well for us.
> 
> [1] http://avahi.org/download/doxygen/struct_avahi_poll.html
> 
> 
> Simon
> 

Attachment: 0xE29FC3CC.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to