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

2009-10-09 Thread Micha Nelissen
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

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

2009-10-08 Thread Marco van de Voort
In our previous episode, Andrew Brunner said: > Sockets programming often requires a poll for how much data is > available on a particular socket descriptor. > > I'm porting an inhouse library for a sockets implementation and I > realize that while I have a FpIOCtl call in the baseUnix unit I have

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

2009-10-07 Thread Andrew Brunner
Sockets programming often requires a poll for how much data is available on a particular socket descriptor. I'm porting an inhouse library for a sockets implementation and I realize that while I have a FpIOCtl call in the baseUnix unit I have no such animal in the Sockets implement which would be