cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Is there a counterpart of curl_multi_fdset to UNset fd's?

From: Rich Gray <rgray_at_plustechnologies.com>
Date: Wed, 09 Jul 2014 10:04:11 -0400

Daniel Stenberg wrote:
> On Tue, 8 Jul 2014, Federico Vitali wrote:
>
>> Ok perhaps I've understood, I apologize for my request. It the select
>> function itself that unsets filedescriptors... Is it correct?
>
> Please don't top-post and I'm not convinced this is the best place to ask
> about how select() works. But yes, select() will set only the file
> descriptors that had any activity.

But shouldn't one zero and rebuild the fdsets anyway prior to each select()
call? One needs to reestablish fds one is still interested in and ones that
were returned as active by select() may no longer be so.

- Rich
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-07-09