On Fri, May 12, 2000 at 09:49:05PM +0200, Oskar Sandberg wrote:
> There is currently no such way. 

> I can't think of any great ways to do it offhand though. How do you interrupt 
> a
> binary transfer cleanly without cutting the connection?

We could use chunked encoding (AKA HTTP/1.1) - e.g. a transmitter writes the
length of a block, and then the block. The block length is done in text (base
10 or 16).


So an interrupter can send

FsckedUpData
...
EndMessage

the transmitter ends up by sending the rest of the block (doesn't matter what
the data is - it could just send NULL's) then rather than sending a number it
could send "End" and then both sides are in a message state to can send

ThatWasCrapIllGetItMySelf
...
EndMessage

AGL

-- 
Just because you don't understand it doesn't mean that it doesn't work
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20000512/1175ad8c/attachment.pgp>

Reply via email to