W dniu 2017-05-19 20:14, Pawel Veselov via c-ares napisaĆ(a):
On Thu, May 18, 2017 at 11:36 PM, Daniel Stenberg <dan...@haxx.se>
wrote:
On Thu, 18 May 2017, Pawel Veselov via c-ares wrote:
Would it be interesting to introduce ares_fds2(ares_channel) that
returns
a struct that is a list that has a next, fd, and read/write flags.
That
would include. Well, may be there are better ways of presenting this
information.
Use ares_getsock() perhaps?
It looks even more horrible, honestly :)
You may have to call ares_process_fd() multiple times (if multiple
descriptors trip), which is OK, fine, but that potential hard limit
after
which sockets "are simply not reported back" - ugh.
Questions like this pop up here from time to time. It would be good to
create some example how to do this, e.g. for epoll. This also could be
new manual page with all necessary details. Here are few links to check:
https://c-ares.haxx.se/mail/c-ares-archive-2017-01/0014.shtml
https://c-ares.haxx.se/mail/c-ares-archive-2016-01/0018.shtml
https://c-ares.haxx.se/mail/c-ares-archive-2013-11/0003.shtml
https://c-ares.haxx.se/mail/c-ares-archive-2015-09/0002.shtml
Daniel