Path: utzoo!attcan!uunet!cbmvax!sterling From: sterling@cbmvax.UUCP (Rick Sterling QA) Newsgroups: comp.sys.amiga Subject: Re: Atalk III 1.0e Message-ID: <5744@cbmvax.UUCP> Date: 20 Jan 89 12:15:04 GMT References: <5707@cbmvax.UUCP> <6842@killer.DALLAS.TX.US> Reply-To: sterling@cbmvax.UUCP (Rick Sterling QA) Organization: Commodore Technology, West Chester, PA Lines: 39 In article <6842@killer.DALLAS.TX.US> elg@killer.DALLAS.TX.US (Eric Green) writes: > in article <5707@cbmvax.UUCP>, sterling@cbmvax.UUCP (Rick Sterling QA) says: > > In article <6818@killer.DALLAS.TX.US> elg@killer.DALLAS.TX.US (Eric Green) writes: > >> Let's say that your file length is an exact multiple of 128 bytes. > >> Further, let's say that your file ends with fifteen NUL characters. > >> Xmodem will not create an extra empty padding block. Thus an > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > >> autochopper will chop off 15 bytes of your file. > >> > > According to my reading of the protocol it should create the extra padding > > block with ^Z's ... This is how I implemented it in several term progs in > > the past.... > > If I called your system (which creates the extra padding blocks) with > my CP/M system (a Commodore 128 running MEX), and uploaded a binary > file, then downloaded it back to myself, what I got back would be > incorrect. > > CP/M is the ultimate test of whether an Xmodem protocol is "right" or > not. If it don't work under CP/M, it ain't Real Xmodem. > -- > Eric Lee Green ..!{ames,decwrl,mit-eddie,osu-cis}!killer!elg What's CP/M ? ;-) Guess I should have qualified the above by saying that this is the required logic for non-CP/M systems to transfer arbitrary length files when the protocol does not transmit file length info. At worst it would add a block to a file for CP/M systems but it would never lose file data. - Rick - -- ============================================================================= Rick Sterling COMMODORE AMIGA TEST ENGINEERING N2CGI UUCP {allegra,rutgers}!cbmvax!sterling =============================================================================