Skip to content

dotsvm/spex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

121 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spex

spex — streaming protocol experiment.

A toy file-transfer protocol over UDP that demonstrates chunking, hashing, out-of-order delivery, and selective retransmission.

Crates

  • spex-core — chunking, hashing, file metadata, and reassembly
  • spex-net — sender and receiver tasks built on top of tokio::net::UdpSocket
  • spex-clispex command line entry point

Building

cargo build

Usage

In one terminal, start the receiver:

cargo run -p spex-cli -- recv --bind 127.0.0.1:7002 --peer 127.0.0.1:7001 --out out.bin

In another, send a file:

cargo run -p spex-cli -- send --bind 127.0.0.1:7001 --peer 127.0.0.1:7002 --file in.bin

Use -v for info logs and -vv for debug logs.

Testing

cargo test --all

License

MIT — see LICENSE.

About

spex - streaming protocol experiment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages