Expand description
Structs and functions for representing DHT messages and serializing and deserializing them
Structs§
- Announce
Peer Request Arguments - Error
Specific - Find
Node Request Arguments - Find
Node Response Arguments - GetPeers
Request Arguments - GetPeers
Response Arguments - Message
- All packets sent and received via DHT are a serialized version of this struct.
- Message
Builder - Allows building packets::Message structs in a more human-friendly way.
- Ping
Request Arguments - Ping
Response Arguments - Sample
Info Hashes Request Arguments - Sample
Info Hashes Response Arguments
Enums§
Functions§
- response_
matches_ request - Returns true if the response and request types specified match. E.g., PingResponse goes with PingRequest. FindNodeResponse goes with FindNodeRequest.
- sockaddr_
to_ bytes