This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Select and Sockets
- From: Andy Atkinson <andya at hydrix dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Fri, 06 Oct 2006 18:22:13 +1000
- Subject: [ECOS] Select and Sockets
- Reply-to: andya at hydrix dot com
Hi,
I am a bit baffled by what I am seeing with regards using select on a
socket.
I am using a socket stream to download a file from a remote server. To
implement a timeout for reading I am using select on the socket
descriptor. All is going well (downloading lots of data) when suddenly
select starts telling me that their is data to read on the socket, but a
call to ioctl with FIONREAD tells me that there is in fact no data
available for reading. Can anyone please explain why this is so?
Regards
Andy Atkinson.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss