package
Version:
v0.0.0-...-c8d95c1
Opens a new window with list of versions in this module.
Published: Mar 31, 2024
License: MIT
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package rundht implements the interface between storrent and the DHT.
The DHT implementation itself is in package dht.
Bootstrap bootstraps the DHT.
Handle reacts to events sent by the DHT.
Read reads the dht.dat file and returns a set of potential nodes.
Write writes the dht.dat file.
type BDHT struct {
Id []byte `bencode:"id,omitempty"`
Nodes []byte `bencode:"nodes,omitempty"`
Nodes6 []byte `bencode:"nodes6,omitempty"`
}
BDHT represents the contents of the dht.dat file.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.