(svn r18992) -Codechange: move the file opening/closing out of the content download function

This commit is contained in:
rubidium
2010-02-03 17:15:35 +00:00
parent 6a4726020f
commit b795af486d
2 changed files with 55 additions and 39 deletions

View File

@@ -88,6 +88,9 @@ protected:
void OnReceiveContentInfo(const ContentInfo *ci);
void OnDownloadProgress(const ContentInfo *ci, uint bytes);
void OnDownloadComplete(ContentID cid);
bool BeforeDownload();
void AfterDownload();
public:
/** The idle timeout; when to close the connection because it's idle. */
static const int IDLE_TIMEOUT = 60 * 1000;