home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!mcsun!sun4nl!fwi.uva.nl!casper
- From: casper@fwi.uva.nl (Casper H.S. Dik)
- Subject: Re: What's wrong with select() ?
- Message-ID: <1992Nov20.083358.18475@fwi.uva.nl>
- Sender: news@fwi.uva.nl
- Nntp-Posting-Host: adam.fwi.uva.nl
- Organization: FWI, University of Amsterdam
- References: <pat.722210144@bcserv> <BxzMMJ.CvI@flatlin.ka.sub.org>
- Date: Fri, 20 Nov 1992 08:33:58 GMT
- Lines: 20
-
- bad@flatlin.ka.sub.org (Christoph Badura) writes:
-
- >In <pat.722210144@bcserv> pat@bcserv.wustl.edu (Niemeyer (Pat)) writes:
-
- >> got = select (1, &fdset, NULL, NULL, &timeout);
-
- >From select(2):
-
- > nfound = select(nfds, readfds, writefds, exceptfds, timeout)
- >...
- > The first nfds descriptors are checked in
- > each set; i.e. the descriptors from 0 through nfds-1 in the
- > descriptor sets are examined.
-
- >This means that if you want to check fd 6 with select(2) the first
- >parameter has to be at least 6.
-
- 7
-
- Casper
-