Use select with a timeout of 0.
There may be other ways to do this but this is what I use and it's
real portable.
> please CC me directly,
> Thanks,
> Jerry
> I know read() tells me how many bytes were read etc...
> but it also takes the bytes out of the buffer.
Mike
-- Michael H. Warfield | (770) 985-6132 | mhw@WittsEnd.com (The Mad Wizard) | (770) 925-8248 | http://www.wittsend.com/mhw/ NIC whois: MHW9 | An optimist believes we live in the best of all PGP Key: 0xDF1DD471 | possible worlds. A pessimist is sure of it!