<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Itamar Shtull-Trauring wrote:
<blockquote cite="mid:1211159539.10447.63.camel@localhost.localdomain"
 type="cite">
  <pre wrap="">On Sun, 2008-05-18 at 18:47 -0400, Nadav Aharony wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">I'm wondering, is there some built-in Twisted functionality (or any 
other existing implementation using Twisted) for doing 
resumable/disruption tolerant file transfer?

Sample scenario: A sends file to B, session fails for whatever reason. B 
saved whatever data was received in some temporary structure, and knows 
to resume transfer from where it left off or alternatively request 
specific chunks that it is missing.

Wanted to know this before I start implementing such functionality on my 
own.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Yes, that's what the client factory is for - to store data that needs to
last beyond the life of a single connection. For example see
infrastructure used by twisted.web.client.downloadPage for resumable
downloads.

  </pre>
</blockquote>
This is exactly what I was looking for, thanks!<br>
Can I safely assume that the part that was initially received is all
contiguous and correct? (if so this would be because of the TCP CRC
check for each packet, right?)<br>
<br>
-Nadav<br>
</body>
</html>