Proper use of select() parameter nfds?

2001-07-06 Thread Matthew Hagerty
Greetings, I am going over the use of select() for a server I'm writing and I *thought* I understood the man page's description for the use of the first parameter, nfds. From MAN: The first nfds descriptors are checked in each set; i.e., the descriptors from 0 through nfds-1 in the

Re: Proper use of select() parameter nfds?

2001-07-06 Thread David Malone
On Fri, Jul 06, 2001 at 09:58:00AM -0400, Matthew Hagerty wrote: I take this to mean that each descriptor set contains n descriptors and I am interested in examining the first nfds descriptors referenced in my sets. I also understood it to mean that nfds has absolutely nothing to do with

Re: Proper use of select() parameter nfds?

2001-07-06 Thread Peter Pentchev
On Fri, Jul 06, 2001 at 09:58:00AM -0400, Matthew Hagerty wrote: Greetings, I am going over the use of select() for a server I'm writing and I *thought* I understood the man page's description for the use of the first parameter, nfds. From MAN: The first nfds descriptors are