On Wed, 1 Nov 2006 srobertjames / gmail.com wrote:

> How can I perform a nonblocking IO read?  That is, read whatever is
> there to read and return.  If there's nothing yet, just return.
>
> Failing that, is there a way to manually check if there's anything to
> read or the read will block?
>
> (Note that I'm developing for both 'nix and Windows.)

it can't be done.  search the archives, this sort of thing almost always
indicates a design flaw.  for instance - what will your program do if there is
no input?

regards.

-a
-- 
my religion is very simple.  my religion is kindness. -- the dalai lama