Mailing List archive

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

[linux-dvb] Re: EOVERFLOW with section filter



Andreas Oberritter <andreas@oberritter.de> wrote:

> > It is much easier to read first those 3 bytes, and then
> > length. Otherwise, depending how read() behaves in this
> > case, some more complex code needs to be developed to
> > handle data... In worst case scenario, read may return
> > anything between 1 and full requested amount of data
> > in each read() call.
> 
> If you always read 4096 bytes then you will always receive whole
> sections.

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


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



Home | Main Index | Thread Index