Re: read() behavior

2009-03-28 Thread Andy Walls
On Sat, 2009-03-28 at 16:00 -0700, Steve Harrington wrote: > In general read(2) is not guaranteed to return a complete record. Especially in non-blocking I/O mode. > For > section reads from the demux device the amount of data returned will > almost certainly be less than requested. I've never

read() behavior

2009-03-28 Thread Steve Harrington
In general read(2) is not guaranteed to return a complete record. For section reads from the demux device the amount of data returned will almost certainly be less than requested. I've never seen a section longer than a single TS packet and the recommended length for a read is 4096 bytes. The que