Skip to main content

Module sender

Module sender 

Source
Expand description

The sender: the side that holds the source tree.

It streams its file list, then answers the receiver’s Requests one at a time until the receiver sends Msg::Finished. It never initiates a read on its own — it is purely reactive — which is what keeps the single duplex stream deadlock-free.

Functions§

run_sender
Run the sender half over conn for the source tree at root.