Documentation ¶
Index ¶
Constants ¶
View Source
const Port uint16 = 6881
Port to listen on
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TorrentFile ¶
type TorrentFile struct { Announce string InfoHash [20]byte PieceHashes [][20]byte PieceLength int Length int Name string }
TorrentFile encodes the metadata from a .torrent file
func (*TorrentFile) DownloadToFile ¶
func (t *TorrentFile) DownloadToFile(path string) error
DownloadToFile downloads a torrent and writes it to a file
Click to show internal directories.
Click to hide internal directories.