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

Function send_listing

clientserver.c:1261–1273  ·  view source on GitHub ↗

send a list of available modules to the client. Don't list those with "list = False". */

Source from the content-addressed store, hash-verified

1259/* send a list of available modules to the client. Don't list those
1260 with "list = False". */
1261static void send_listing(int fd)
1262{
1263 int n = lp_num_modules();
1264 int i;
1265
1266 for (i = 0; i < n; i++) {
1267 if (lp_list(i))
1268 io_printf(fd, "%-15s\t%s\n", lp_name(i), lp_comment(i));
1269 }
1270
1271 if (protocol_version >= 25)
1272 io_printf(fd,"@RSYNCD: EXIT\n");
1273}
1274
1275static int load_config(int globals_only)
1276{

Callers 1

start_daemonFunction · 0.85

Calls 3

lp_num_modulesFunction · 0.85
io_printfFunction · 0.85
lp_nameFunction · 0.85

Tested by

no test coverage detected