[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys
In article <20121130134954.GA14008%britannica.bec.de@localhost>,
Joerg Sonnenberger <joerg%britannica.bec.de@localhost> wrote:
>On Fri, Nov 30, 2012 at 08:34:27AM -0500, Christos Zoulas wrote:
>> | fd_set doesn't seem like an appropriate structure for this.
>> I've been thinking about creating something more efficient, but I didn't come
>> up with something better and decided that using fd_set was less complex.
>A plain bitmap is ok for this purpose. Something like:
>static uintptr_t inet4_reserve[65536 / sizeof(uintptr_t) / CHAR_BITS];
Sure, but then I would have to rewrite or open code the access macros.
I think that it would be a lot nicer to have a more general "fdset" that
could be included multiple times, and provided the access macros.
Main Index |
Thread Index |