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: "Nic Ferrier" <nferrier at tapsellferrier dot co dot uk>
- Subject: Re: fix for socket timeouts (and a question about _Jv_select)
- From: Tom Tromey <tromey at redhat dot com>
- Date: 30 Jun 2001 07:53:50 -0600
- Cc: cedric at wireless-networks dot com, java at gcc dot gnu dot org
- References: <sb3de1dd.038@tapsellferrier.co.uk>
- Reply-To: tromey at redhat dot com
>>>>> "Nic" == Nic Ferrier <nferrier@tapsellferrier.co.uk> writes:
Nic> 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.
Nic> I don't see how this justifies what you're saying. Maybe I'm just
Nic> misunderstanding the language.
Yeah. What this means is that select() examines the slots in the
vector numbered 0, 1, ..., nfds-1. If you pass `1' as nfds, then
select() will only look at the settings for fd 0. This is a goofy
interface. Maybe we ought to use poll() instead. I don't know. I
use select() since I have a bsd-ish background.
Tom