I'm trying to use the select() call to handle IO for multiple sockets.
I'm a little confused about the FD_ISSET() macro. The man page for
select(3C) says this:
I had assumed FD_ISSET() was supposed to be used to test whetherQuote:> FD_ISSET() is nonzero if fd is a member of fdset, zero otherwise.
fd was ready for IO (after the select() call was made). If this
is not the case, how do you tell which file descriptors are ready
for IO after the select() call returns??
Thanks,
Nancy