Morgan wrote: > At 06:29 AM 09/06/2005, you wrote: > >> In article <0ca201c5b19d$6368edd0$6442a8c0@musicbox>, >> "Bill Kelly" <billk / cts.com> writes: >> >> > Is it not possible to check for EOF without blocking? >> >> I documented the blocking behavior of IO#eof?. I hope it reduces >> confusion about IO#eof?. > > > Hmmmm... > > Correct me if I'm wrong, but using eof? on a socket would be rather > useless, wouldn't it? > > I'd *really* like to find something that will just tell me if there's data > waiting on a socket. Something I can use like > > someSocket.incoming_data_waiting? > > And if there's something I can read, I'll get true, and otherwise I'll get > false. But nothing I've tried seems to work that way. Doesn't select work, with a timeout of 0? I haven't tried that, but it seems like what you are asking for. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407