Send a file
./received/ on the peer. Use the other machine’s
IP:port.
Connect both machines
Start the server and client as usual (see Usage). The clipboard
starts syncing immediately.
Run send-file
From either machine, run
send-file pointing at the peer’s IP:port and the
path to the file.How it works
A file transfer is three kinds of message on the bulk channel:FileBegin— announces the file id, name, and size.FileChunk— many 64 KiB chunks, each written at itsoffset.FileEnd— signals completion.
offset, transfers are robust and
resumable-in-principle. See the wire protocol
for the exact message shapes.
The receiver sanitizes the filename (strips path components) to prevent
path-traversal attacks, and writes only into
./received/. Max frame size is
64 MiB to guard against a hostile peer forcing a huge allocation.Clipboard sync
Clipboard sharing needs no command — it’s on whenever two machines are connected. Both text and images (raw RGBA) sync in both directions over the same reliable channel.Next
Wire protocol
The exact bulk-channel message formats.
Security
How file and clipboard data stay encrypted.