Documentation
¶
Index ¶
Constants ¶
View Source
const MaxBacklog = 5
MaxBacklog is the number of unfulfilled requests a client can have in its pipeline
View Source
const MaxBlockSize = 16384
MaxBlockSize is the largest number of bytes a request can ask for
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Torrent ¶
type Torrent struct {
PeerSet peers.PeerSet
PeerID [20]byte
InfoHash [20]byte
PieceHashes [][20]byte
PieceLength int
Length int
Name string
Local string
PathSelectionResponsibility string
DhtNode *dht_node.DhtNode
DiscoveryConfig *config.PeerDiscoveryConfig
// contains filtered or unexported fields
}
Torrent holds data required to download a torrent from a list of peers
Click to show internal directories.
Click to hide internal directories.