This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: cygwin32 and select()
Chris Faylor wrote:
> On Fri, Aug 20, 1999 at 04:10:27PM -0600, joshua M. Schmidlkofer wrote:
> >This leads me to beleive that I put the number of fd's that I have in
> >select()
> >However, this is from the most recent man pages that I have found:
> >
> ><snip> Man Page 2:<snip>
> >int select(int n, fd_set *readfds, fd_set *writefds, fd_set
> >*exceptfds, struct timeval *timeout);
> >[.....]
> > n is the highest-numbered descriptor in any of the three
> > sets, plus 1.
>
> Ok. If you are not doing this then that is at least *a* problem.
>
> If this is not working then possibly the newest snapshot will help:
> http://sourceware.cygnus.com/cygwin/snapshots/
>
> -chris
Chris,
*grin* Ok I will try that, and I have attached code that I _know_ works
under linux. I was embarrased to attach it because it is very poorly
written. However, the point of it was to test select, and data send /
receive. I hope that I was not bad to send it attached...
thanks,
JOshua/
p.s. I will download the snapshot next chance that I get. Thanks for the
help =).
testlisten.c.bz2
testsend.c.bz2
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com