fix for socket timeouts (and a question about _Jv_select)
Nic Ferrier
nferrier@tapsellferrier.co.uk
Sat Jun 30 06:26:00 GMT 2001
>>> 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
More information about the Java
mailing list