Expand description
Wire messages for the Kademlia DHT plane.
Two transports:
KadNetMsgover a length-prefixed framed TCP/TLS/QUIC connection (lookup-plane), withKadNetCmdas the command tag.RefreshMsgdirectly over UDP (refresh-plane).
Structs§
- Find
Peer Msg - FindPeer payload: target peer id we want closest peers for.
- KadNet
Msg - Wire envelope for the kademlia lookup-plane (LookupService’s own short-lived TCP/TLS/QUIC connections).
- KadNet
MsgCodec - Length-prefixed bincode codec for the kademlia lookup-plane wire.
- KadNet
MsgHeader - PeerMsg
- Peer payload: a single peer’s advertised addresses + protocol bloom.
- Peers
Msg - Peers payload: list of peer entries returned by FindPeer.
- PingMsg
- Ping payload: liveness + version probe.
- PongMsg
- Pong payload echoing back the nonce.
Enums§
- KadNet
Cmd - Commands valid on the kademlia lookup-plane wire.
- Refresh
Msg - Refresh-plane message sent directly over UDP. No envelope/codec because each datagram carries one self-describing message.