[fpc-pascal] FIONREAD FPC FpIOCtl for Cross platform Sockets

Micha Nelissen micha at neli.hopto.org
Fri Oct 9 18:19:55 CEST 2009


Andrew Brunner wrote:
> Sockets programming often requires a poll for how much data is
> available on a particular socket descriptor.

AFAIK, it doesn't? If data is available, but less than you request, a 
'read' on the socket does not block, but returns the number of bytes 
read, which is less than you requested.

Micha



More information about the fpc-pascal mailing list