[−][src]Module libp2prs_kad::protocol
The Kademlia connection protocol upgrade and associated message types.
The connection protocol upgrade is provided by KadProtocolHandler
, 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
KadMessengerView | View for Debugging purpose. |
KadPeer | Information about a peer, as known by the sender. |
KadProtocolHandler | The Protocol Handler of Kademlia DHT. |
KademliaProtocolConfig | Configuration for a Kademlia protocol handler. |
Enums
KadConnectionType | Status of our connection to a node reported by the Kademlia protocol. |
KadRequestMsg | Request that we can send to a peer or that we received from a peer. |
KadResponseMsg | Response that we can send to a peer or that we received from a peer. |
RefreshStage |
Constants
DEFAULT_MAX_PACKET_SIZE | The default maximum size for a varint length-delimited packet. |
DEFAULT_MAX_REUSE_TRIES | The number of times we will try to reuse a stream to a given peer. |
DEFAULT_PROTO_NAME | The protocol name used for negotiating with multistream-select. |