MCPcopy Index your code
hub / github.com/RsyncProject/rsync / write_sum_head

Function write_sum_head

io.c:2072–2084  ·  view source on GitHub ↗

Send the values from a sum_struct over the socket. Set sum to * NULL if there are no checksums to send. This is called by both * the generator and the sender. */

Source from the content-addressed store, hash-verified

2070 * NULL if there are no checksums to send. This is called by both
2071 * the generator and the sender. */
2072void write_sum_head(int f, struct sum_struct *sum)
2073{
2074 static struct sum_struct null_sum;
2075
2076 if (sum == NULL)
2077 sum = &null_sum;
2078
2079 write_int(f, sum->count);
2080 write_int(f, sum->blength);
2081 if (protocol_version >= 27)
2082 write_int(f, sum->s2length);
2083 write_int(f, sum->remainder);
2084}
2085
2086/* Sleep after writing to limit I/O bandwidth usage.
2087 *

Callers 3

send_filesFunction · 0.85
generate_and_send_sumsFunction · 0.85
recv_generatorFunction · 0.85

Calls 1

write_intFunction · 0.85

Tested by

no test coverage detected