Andreas Oberritter <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] with "unsubscribe linux-dvb" as subject.
