This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: fix for socket timeouts (and a question about _Jv_select)
- To: cedric at wireless-networks dot com
- Subject: Re: fix for socket timeouts (and a question about _Jv_select)
- From: "Nic Ferrier" <nferrier at tapsellferrier dot co dot uk>
- Date: Sat, 30 Jun 2001 14:21:18 +0100
- Cc: java at gcc dot gnu dot org
>>> Cedric Berger <cedric@wireless-networks.com> 30-Jun-01 5:59:03 AM
>>>
No. You do too much Windows development.
Actually, I don't do any Windows development. I just don't use C that
much (I'm a java programmer).
BSD doesn't define the first parameter of select like that:
Actually, I was following what the glibc manual says.
It's pretty similar to the bsd details by the looks of it.
The glibc manual says this:
The select function checks only the first nfds file descriptors.
The usual thing is to pass FD_SETSIZE as the value of the
argument.
That leads me to understand that 'n' is a scalar quatity. The number
of file descriptors to check.
Since I've only added one file descriptor to the fd_set it should be
1 shouldn't it?
Here's your bsd text:
The first nfds descriptors are checked in each
set; i.e., the descriptors from 0 through nfds-1
in the descriptor sets are examined.
I don't see how this justifies what you're saying. Maybe I'm just
misunderstanding the language.
Nic