Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: EOVERFLOW with section filter



On Tue, 2003-01-14 at 11:00, Clemens Kirchgatterer wrote:
> > If you always read 4096 bytes then you will always receive whole
> > sections.

... assuming read() does not fail and return -1, of course.

> 
> but you may also read less, IMHO. i.e. when EINTR occours.
> 

read() will then return -1 and the content of the buffer should be
discarded, because it is not possible to tell how much data (if any) has
been copied to it. The next succeeding read will copy a complete section
to the buffer.

Andreas



-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index