[][src]Module d9d_p2p::peer

The peer module defines the TCP handlers that implement peer discovery.

Modules

ping_pong

The ping_pong module defines a basic implementation of the P2P interface. Every peer continuously pings its MultiAddr to a random subset of its known peers. Whenever a peer is pinged about a new MultiAddr, it will ping a random subset of its known peers to inform them about that new MultiAddr, and it will pong its own MultiAddr to that new MultiAddr. This results in a basic gossip algorithm with back channeling.

Enums

Error

Traits

Client

A Client can send data frames over the network. Generally, this interface is implemented by an external networking driver that is injected into a P2P implementation.

P2P

The P2P trait defines a standard inteface that all P2P implementation must expose.

Server

A Server can accept data frames over the network. Generally, this interface is implemented by a P2P implementation and passed to an external network driver.