Alex6323 / netzwerk

Prototyping an extendable networking crate.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

netzwerk

netzwerk is a library, that lets you build peer-to-peer (p2p) nodes, and which is:

  • async (based on async-std),
  • event-driven,
  • lock-free and free of globally shared state (instead: message passing, actor model),
  • easily extendable by adding commands, events, network protocols

Supported protocols

  • TCP
  • UDP (wip)

Examples

To run a minimal "pingpong" example open two terminals and enter the following two commands respectively.

cargo r --example pingpong -- --bind localhost:1337 --peers tcp://localhost:1338 --msg ping
cargo r --example pingpong -- --bind localhost:1338 --peers tcp://localhost:1337 --msg pong

Disclaimer

Do not use this crate for any serious application. This is just a prototype for another project.

About

Prototyping an extendable networking crate.

License:Apache License 2.0


Languages

Language:Rust 100.0%