Commit Graph
35 Commits
Author SHA1 Message Date
Friedel ZiegelmayerandFloris Bruynooghe c121094de2 feat: add STDIN and STDOUT support (#39)
* 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>
2023-01-23 13:26:10 +01:00
Friedel Ziegelmayer 03e1f9377d feat: rework client api to emit content
This prepares the api to allow for multiple results to be emitted
2023-01-20 18:04:30 +01:00
Friedel Ziegelmayer c57fa4f7d5 feat: connect based on PeerIds 2023-01-20 16:16:27 +01:00
Friedel Ziegelmayer bcc7313dd5 Merge pull request #30 from n0-computer/test-sizes
test: different sizes
2023-01-18 22:14:56 +01:00
dignifiedquire a1d6927f9c test: different sizes
Closes #12
2023-01-18 17:28:38 +01:00
Friedel Ziegelmayer 85922620d5 Merge pull request #29 from n0-computer/feat-limits
feat: limit number of active connections and streams
2023-01-18 17:02:10 +01:00
dignifiedquire 40a60c73a3 test: different port 2023-01-18 16:47:33 +01:00
dignifiedquire c899d64264 refactor output to improve client experience 2023-01-18 15:06:25 +01:00
dignifiedquire 736c5a9519 happy clippy 2023-01-18 14:37:54 +01:00
dignifiedquire 6e5f2b848e fixup 2023-01-18 14:28:47 +01:00
dignifiedquire 48acbe8272 test: use multithread runtime 2023-01-18 14:28:24 +01:00
dignifiedquire 9f9292d63d fix: ensure data is flushed to disk 2023-01-18 14:19:24 +01:00
dignifiedquire ba5933767d refactor: cleanup and improve address options 2023-01-18 14:08:01 +01:00
dignifiedquire 4cb1a5af3a test: use differnt ports 2023-01-18 13:59:50 +01:00
dignifiedquire dc2fe24d17 test: avoid file system 2023-01-18 13:51:51 +01:00
dignifiedquire 1dd46e9a6d feat: limit number of active connections and streams
Closes #19,#18
2023-01-18 13:44:51 +01:00
Friedel Ziegelmayer af15f94ab1 Merge pull request #28 from n0-computer/feat-protocol
feat: add handshake and reduce allocations
2023-01-18 13:36:29 +01:00
dignifiedquire 6403bd1bb8 feat: add handshake and reduce allocations 2023-01-18 12:25:44 +01:00
Friedel Ziegelmayer 3d958e86ac Merge pull request #27 from n0-computer/docs-readme
docs: add readme and license
2023-01-18 11:34:01 +01:00
dignifiedquire b37c1357b6 docs: add readme and license
Closes #15,#1
2023-01-18 11:18:04 +01:00
Friedel Ziegelmayer 3038bfedf5 split out io on the client & use tracing (#26)
* split out io on the client & use tracing

closes #9

* ups

* fixup close
2023-01-16 22:59:20 +01:00
Friedel Ziegelmayer 9d81734617 Merge pull request #25 from n0-computer/feat-limit-lp-message-size
feat: limit length prefixed message size
2023-01-16 21:29:55 +01:00
Friedel Ziegelmayer 74596d73ee first pass at CI
Ref #5
2023-01-13 22:40:08 +01:00
dignifiedquire 87f9be3525 improve error handling in the server 2023-01-13 18:19:27 +01:00
dignifiedquire d99007e4ce feat: limit length prefixed message size 2023-01-13 18:11:52 +01:00
Friedel Ziegelmayer 0f164b696a Merge pull request #24 from n0-computer/feat-tls
feat: implement custom version of libp2p-tls
2023-01-13 15:56:26 +01:00
dignifiedquire c3cd9e63c2 implement custom version of libp2p-tls
- only ed25519 keys are supported
- no support for PeerIds that are based on protobufs
- remove support for RSA on the certificates
2023-01-13 15:07:24 +01:00
Friedel Ziegelmayer 1c3373c8c3 refactor: make code library based 2023-01-13 13:41:56 +01:00
Kaseyanddignifiedquire e46d460222 feat: add clap and server and client options
- 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>
2023-01-13 13:07:38 +01:00
dignifiedquire c4669583ad simplify bao integration and add a test 2023-01-11 21:28:44 +01:00
dignifiedquire c5eff3e2b8 add progressbar 2023-01-10 10:44:35 +01:00
dignifiedquire 836c125cc0 add blake3 verification 2023-01-09 22:44:38 +01:00
dignifiedquire c982d76d6a better stats 2023-01-09 21:53:26 +01:00
dignifiedquire 9fd0496a71 add framing 2023-01-09 21:39:59 +01:00
dignifiedquire 59fc6c84c3 initial commit 2023-01-09 17:37:25 +01:00