Skip to main content

Module server

Module server 

Source
Expand description

The ripsync --server peer: speaks the protocol over stdin/stdout.

Spawned on the remote host by the initiator’s ssh command. It plays the opposite role to whatever the initiator asked for: for [Role::Push] it is the receiver (writing into the remote destination), for [Role::Pull] it is the sender (reading the remote source). Every path it touches is confined under the negotiated root by the receiver’s containment checks.

Functions§

run_server
Run the server peer to completion, reading the protocol from stdin and writing it to stdout. Diagnostics must go to stderr (never stdout, which is the wire).