Skip to main content

Module receiver

Module receiver 

Source
Expand description

The receiver: the side that holds the destination tree.

It reads the sender’s file list, creates directories and symlinks directly, and for each file decides skip / whole / delta. It drives the exchange — one Request then one Data response at a time — applies each result with a containment-checked atomic write, mirrors deletions, and finally sends Msg::Finished to end the session.

Functions§

run_receiver
Run the receiver half over conn for the destination tree at root.