Module magic_wormhole::transfer
source · Expand description
Client-to-Client protocol to organize file transfers
This gives you the actual capability to transfer files, that feature that Magic Wormhole got known and loved for.
It is bound to an APPID
. Only applications using that APPID (and thus this protocol) can interoperate with
the original Python implementation (and other compliant implementations).
At its core, “peer messages” are exchanged over an established wormhole connection with the other side. They are used to set up a transit portal and to exchange a file offer/accept. Then, the file is transmitted over the transit relay.
Structs
- The application specific version information for this protocol.
- A pending files send offer from the other side
Enums
Constants
- The App ID associated with this protocol.
- An
crate::AppConfig
with sane defaults for this protocol.
Functions
- Wait for a file offer from the other side
- Send a file to the other side
- Send a folder to the other side