Crate pea2pea

source ·
Expand description

pea2pea is a simple, low-level, and customizable implementation of a TCP P2P node.

Re-exports

Modules

  • Objects associated with connection handling.
  • Opt-in protocols available to the node; each protocol is expected to spawn its own task that runs throughout the node’s lifetime and handles a specific functionality. The communication with these tasks is done via dedicated handler objects.

Structs

  • The node’s configuration. See the source of Config::default for the defaults.
  • The central object responsible for handling connections.
  • Contains basic statistics related to a node or a connection.

Enums

Traits

  • A trait for objects containing a Node; it is required to implement protocols.

Functions