lkml.org 
[lkml]   [1997]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjecthow to tell if data is available for a file descriptor
Date

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.

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.050 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site