pea2pea

license current version

pea2pea is a P2P library designed with the following use cases in mind: - simple and quick creation of custom P2P networks - testing/verifying network protocols - benchmarking and stress-testing P2P nodes (or other network entities) - substituting other, "heavier" nodes in local network tests

goals

non-goals

current state: beta

how to use it

  1. define a clonable struct containing an Arc<Node> and any extra state you'd like to carry
  2. impl ContainsNode for it
  3. make it implement any/all of the protocols
  4. create that struct (or as many of them as you like)
  5. enable protocols you'd like the node(s) to utilize

that's it!