how to tell if data is available for a file descriptor

Geis Jerry (GeisJ@rnd3.indy.tce.com)
Thu, 11 Sep 97 09:30:00 CST


I have an open socket and a file descriptor
for that socket, how do I tell without reading the
data out of the buffer if there is data to be read?

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.