This adds a generic utility which can be used to track progress of
data transfers by emitting progress via a tokio broadcast channel.
This is extracted from the deltachat PR:
https://github.com/deltachat/deltachat-core-rust/pull/4007
The tokio feature of tracing-futures seems crazy outdated and not
needed. Enabling it pulls in an ancient version of tokio for no
reason whatsoever. Get rid of it.
This adds Provider::shutdown allowing to stop the Provider without
having to abort it. On the wire however it still does not do anything
graceful: all the connections are stopped and any in-transit data is
lost.
Additionally this adds tracing spans to the connection handling.
Finally it fixes a bug where read_lp would not return None if the
connection was closed normally.
Part of #77 but this is not very graceful on the wire yet.
- avoids relying on blake3::Hash as a type in the public api
- ensures consistent encoding and decoding
- fixes bug where hex decoding was expected in the UI
This adds a ticket format which enables fetching a hash using a single
"ticket" which contains all the connection details. With an IPv4
address this just over 200 bytes long.
* feat: add STDIN and STDOUT support
also avoid keeping files data in memory, after calculating the outboard data
* Update src/server.rs
Co-authored-by: Floris Bruynooghe <flub@devork.be>
* Update src/server.rs
Co-authored-by: Floris Bruynooghe <flub@devork.be>
Co-authored-by: Floris Bruynooghe <flub@devork.be>
- help & version commands
- optional custom port for server
- optional custom server addr for client
- server takes a list of filepaths
- client saves the transfered file to the filesystem. By default the name of
this file is the hash. Optional flag for setting your own `out` path
Co-authored-by: dignifiedquire <me@dignifiedquire.com>