* ref: use separate alpn for rpc calls
* feat: pass errors to the client
* Add comment about path
* feat: copy over the watch and version stuff from iroh
This is so we can detect if the sendme server is running
* docs: add todo about better way to check the server is available
* refactor: update to new quic-rpc
* refactor: move RpcError and RpcResult to util
* refactor: prettify the code a bit
* feat: print peer id and address and stuff on startup
* refactor: make a constant for RPC port
* refactor: Put RPC_ALPN into a const
* fix: use Ipv4Addr::LOCALHOST on server
* fix: ipv6
* refactor: Use RwLock instead of mutex
Should help a bit, so why not?
* feature: make rpc port configurable
* add ability to talk to provider internally via the RPC interface
* adapt cli tests
* review comments
* docs: Add some docs for why we need to wait when closing a rpc client
* feat: nicer output for add and provide
* clippy
* fix: better output for list
* refactor: remove the delay when dropping the client
This now gets taken care of in quic-rpc. The shutdown_timeout is good to
limit the time for a clean shutdown so we don't have to wait indefinitely.
Tests the provide-get loop, transferring a single file, a folder of multiple files, and data from stdin of the provider to stdout if the better, ensuring that the content is transferred successfully.
The tests also test the stdout of the provider and stderr of the getter, using regex matching on each line of the respective output.