<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:small;"><div><div>Hi Paul,</div></div><div><br></div><div><br></div><div>Thanks for the quick reply. For some reason, my emails to the Oberon mailing list always take several days to appear there.</div><div><br></div><div><br></div><div>I managed to create a workaround, similar to the one you have described below (i.e. I just send another final zero-length "dummy" packet). But I did not really want to meddle with the code in pclink.c. First, it is not my code, and second I do not really understand 100% the part starting with "int pos = (rxcount - fnlen -1) % 256, followed by two cascaded if statements, one with condition pos == 0 and one with condition flen > 255". I would probably have written this in a different way, namely such that it *always* sends a zero-length packet at the end no matter what (after a loop that loops over all non-zero-length packets).</div><div><br></div><div><br></div><div>For now I'm fine. But if there is a new version of the emulator, I'm of course a happy taker.</div><div><br></div><div>Apart from that, it really works very well! A great piece of work!</div><div><br></div><div><br></div><div>Best regards,</div><div>Andreas</div><div><br></div><div><br></div><div><br></div><hr><div id="ydpb94950c2yahoo_quoted_8991754703" class="ydpb94950c2yahoo_quoted"><div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;"><div>On Friday, June 30, 2017, 12:13:38 PM GMT+2, Paul Reed <paulreed@paddedcell.com> wrote:</div><div><br></div><div><br></div><div><div dir="ltr">Hi Andreas,<br clear="none"><br clear="none">> Â ./pcreceive filename<div class="ydpb94950c2yqt6176016949" id="ydpb94950c2yqtfd12009"><br clear="none">><br clear="none">> does not seem to work for files whose file size is a multiple of 255.</div><br clear="none"><br clear="none">Thanks very much for pointing this out (it seems your email only emerged<br clear="none">today, even though it looks like you sent it nine days ago).<br clear="none"><br clear="none">I just had a quick look, and to me the last half of PCLink_RData in<br clear="none">pclink.c suddenly appears to be utter rubbish - I humbly apologise, it's<br clear="none">obvious (now you point it out) that the PC needs to send (ie, emulate<br clear="none">having sent) a final zero-length (ie 1 byte) packet in these cases.<br clear="none"><br clear="none">But I don't like the look of the rest of my code there either, so I think<br clear="none">it needs a really good coat of looking at, as a Mancunian colleague of<br clear="none">mine used to say...<br clear="none"><br clear="none">Mea culpa<br clear="none">Paul<div class="ydpb94950c2yqt6176016949" id="ydpb94950c2yqtfd47167"><br clear="none"><br clear="none"><br clear="none"></div></div></div></div></div></div></body></html>