extern int am_server;
-/*
- receive the checksums for a buffer
- */
+/**
+ * @file
+ *
+ * The sender gets checksums from the generator, calculates deltas,
+ * and transmits them to the receiver. The sender process runs on the
+ * machine holding the source files.
+ **/
+
+
+/**
+ * Receive the checksums for a buffer
+ **/
static struct sum_struct *receive_sums(int f)
{
struct sum_struct *s;
s->sums = NULL;
if (verbose > 3)
- rprintf(FINFO,"count=%d n=%d rem=%d\n",
- s->count,s->n,s->remainder);
+ rprintf(FINFO,"count=%ld n=%ld rem=%ld\n",
+ (long) s->count, (long) s->n, (long) s->remainder);
if (s->count == 0)
return(s);
rprintf(FINFO,"send_files(%d,%s)\n",i,fname);
if (dry_run) {
- if (!am_server) {
- log_transfer(file, fname+offset);
+ if (!am_server && verbose) { /* log transfer */
+ rprintf(FINFO, "%s\n", fname+offset);
}
write_int(f_out,i);
continue;
if (!read_batch)
rprintf(FINFO,"calling match_sums %s\n",fname);
- if (!am_server) {
- log_transfer(file, fname+offset);
+ if (!am_server && verbose) { /* log transfer */
+ rprintf(FINFO, "%s\n", fname+offset);
}
set_compression(fname);