Date: Tue, 27 May 1997 23:41:48 -0500 From: Wm Brian McCane <root@bmccane.uit.net> To: Christopher Sedore <cmsedore@mailbox.syr.edu> Cc: FreeBSD-Hackers@FreeBSD.ORG Subject: Re: async socket stuff Message-ID: <199705280441.XAA26946@bmccane.uit.net> In-Reply-To: Your message of "Tue, 27 May 1997 18:00:36 EDT." <Pine.SOL.3.95.970527165604.11761B-100000@rodan.syr.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Your only need to loop 25 times to check 800 file descriptors, so whats the big deal??? I look at fds_bits (the array of longs under fd_set), for a non-zero value, then use ffs to figure out which descriptor(s) are active for a large number of open descriptors. I then clear the bit, and continue checking where I left off. Fairly inexpensive. brian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705280441.XAA26946>