This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

xmodem Redboot


I'm downloading a binary file with multiple, ie more
the 3 consective EOF's which are not the in the last
packet.


if ((xyz.bufp[xyz.len-1] == EOF) &&
    (xyz.bufp[xyz.len-2] == EOF) &&
    (xyz.bufp[xyz.len-3] == EOF)) {
    while (xyz.len && (xyz.bufp[xyz.len-1] == EOF)) {
                                    xyz.len--;
                                }
The data gets eaten.

According to the xmodem documentation, if the last
packet contains EOF's this is considered the pad?

Is this correct?



		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]