Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TorrentFile ¶
type TorrentFile struct { Announce string InfoHash [20]byte PieceHashes []handshake.Hash PieceLength int Length int Name string }
TorrentFile stores the basic information to handle processing and download of torrents
func (*TorrentFile) BuildTrackerURL ¶
func (t *TorrentFile) BuildTrackerURL(peerID [20]byte, port uint16) (string, error)
BuildTrackerURL takes the TorrentFile and build the tracker URL with params Example can be found on https://wiki.theory.org/BitTorrent_Tracker_Protocol For this implementation we are always passing as no parts have been downloaded yet
Click to show internal directories.
Click to hide internal directories.