a89c648b36bf7ae11587c2d83f375cb8431afb0a galt Thu Mar 31 01:54:40 2011 -0700 adding progress bar showing filesize, progress, total time, and avg download rate in MB/sec. diff --git src/inc/net.h src/inc/net.h index fcd8c61..99fd5ed 100644 --- src/inc/net.h +++ src/inc/net.h @@ -226,20 +226,20 @@ * call this as: * char *newUrl = NULL; * int newSd = 0; * netSkipHttpHeaderLine(sd, url, &newSd, &newUrl); * if (newUrl != NULL) * // Update sd with newSd, free url if appropriate and replace it with newUrl, etc. * // free newUrl when finished. * This routine handles up to 5 steps of redirection. * The logic to this routine is also complicated a little to make it work in a pipe, which means we * can't attach a lineFile since filling the lineFile buffer reads in more than just the http header. */ boolean netGetFtpInfo(char *url, long long *retSize, time_t *retTime); /* Return date in UTC and size of ftp url file */ -boolean parallelFetch(char *url, char *outPath, int numConnections, int numRetries, boolean newer); +boolean parallelFetch(char *url, char *outPath, int numConnections, int numRetries, boolean newer, boolean progress); /* Open multiple parallel connections to URL to speed downloading */ #endif /* NET_H */