From: Morgan Date: 2005-09-08T12:22:21+09:00 Subject: Re: Nonblocking and/or win32 (was: Re: [ANN] EventLoop 0.0.20050825.1600) At 06:29 AM 09/06/2005, you wrote: >In article <0ca201c5b19d$6368edd0$6442a8c0@musicbox>, > "Bill Kelly" 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. -Morgan, wonders why such a simple seeming thing is so difficult? -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.18/91 - Release Date: 09/06/2005