From: ian Date: Sun, 10 Oct 1999 14:23:36 +0000 (+0000) Subject: Explain adns_processany better. X-Git-Tag: adns-1.5.0-rc0~355 X-Git-Url: https://git.distorted.org.uk/~mdw/adns/commitdiff_plain/25913ee217cdfbf869102362b4c6985f070a4ce4?hp=c118a7254985626bf91312e73cfef575c6decf82 Explain adns_processany better. --- diff --git a/src/event.c b/src/event.c index 73919ff..fc8aa81 100644 --- a/src/event.c +++ b/src/event.c @@ -530,6 +530,10 @@ int adns_processany(adns_state ads) { r= gettimeofday(&now,0); if (!r) adns_processtimeouts(ads,&now); + /* We just use adns__fdevents to loop over the fd's trying them. + * This seems more sensible than calling select, since we're most + * likely just to want to do a read on one or two fds anyway. + */ npollfds= adns__pollfds(ads,pollfds); adns__fdevents(ads, pollfds,npollfds,