Module libp2p::kad::protocol

source ·
Expand description

The Kademlia connection protocol upgrade and associated message types.

The connection protocol upgrade is provided by KademliaProtocolConfig, with the request and response types KadRequestMsg and KadResponseMsg, respectively. The upgrade’s output is a Sink + Stream of messages. The Stream component is used to poll the underlying transport for incoming messages, and the Sink component is used to send messages to remote peers.

Structs

  • Information about a peer, as known by the sender.
  • Configuration for a Kademlia connection upgrade. When applied to a connection, turns this connection into a Stream + Sink whose items are of type KadRequestMsg and KadResponseMsg.

Enums

  • Status of our connection to a node reported by the Kademlia protocol.
  • Request that we can send to a peer or that we received from a peer.
  • Response that we can send to a peer or that we received from a peer.

Constants

Type Definitions