*
* See the --help for options.
*/
-
/*
* rcopy-repeatedly is
* Copyright (C) 2008 Ian Jackson <ian@davenant.greenend.org.uk>
* Foundation's website at www.fsf.org, or the GNU Project website at
* www.gnu.org.
*/
-
/*
* protocol is:
* server sends banner
static void copyfile(FILE *sf, copyfile_die_fn *sdie, const char *sxi,
FILE *df, copyfile_die_fn *ddie, const char *dxi,
uint64_t lstart, int amsender) {
- struct timespec ts_last;
int now, r;
uint64_t l=lstart, done=0;
- ts_last= ts_sendstart;
-
while (l>0) {
now= l < sizeof(mainbuf) ? l : sizeof(mainbuf);
if (now > txblocksz) now= txblocksz;