f65a2b3c5cce9a173c871fc40e41881d08f5def9 kent Mon Jul 8 13:52:38 2013 -0700 Adding paraFetchTempUpdateTime for tracking file progress. diff --git src/inc/paraFetch.h src/inc/paraFetch.h index 348d5c7..d34a460 100644 --- src/inc/paraFetch.h +++ src/inc/paraFetch.h @@ -11,16 +11,19 @@ { struct parallelConn *next; /* next connection */ int sd; /* socket descriptor */ off_t rangeStart; /* where does the range start */ off_t partSize; /* range size */ off_t received; /* bytes received */ }; boolean paraFetchReadStatus(char *origPath, struct parallelConn **pPcList, char **pUrl, off_t *pFileSize, char **pDateString, off_t *pTotalDownloaded); /* Read a status file - which is just origPath plus .paraFetchStatus. This is updated during * transit by parallelFetch. Returns FALSE if status file not there - possibly because * transfer is finished. Any of the return parameters (pThis and pThat) may be NULL */ +time_t paraFetchTempUpdateTime(char *origPath); +/* Return last mod date of temp file - which is useful to see if process has stalled. */ + #endif /* PARAFETCH_H */