Using select and FD_XXX macros
hi
I want to ask one thing about the FD_xxxx (SET,CLR,ZERO) macros when doing select.
After I have defined both FD_ZERO(readfd) and FD_SET(fd, readfd) before I define the select with its appropriate parameters do I need to clear the fd set.
The question is when select is finished do I need to use the FD_CLR() macro to remove the fd from the set or doesn't it matter if I do not.
My real concern is when I repeatedly call select and never remove the fd from the set but always add it to the set (with FD_SET()) do I mess it up or doesn't it matter at all.
Hope you understand the question.
regards
Einar
|