Documentation ¶
Overview ¶
Package bittorrent implements the client side (downloads) of the BitTorrent protocol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Download ¶
type Download struct {
// contains filtered or unexported fields
}
func NewDownload ¶
NewDownload sets up a download given a source string (supports torrent file and magnet links. It attempts to get peer addresses from tracker servers, then gets metadata from peers if necessary (i.e. source is a magnet link). Once setup, the Download.Run() method will start the peer to peer download.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
Package peer is a client implementation (TCP only) to peers in the swarm.
|
Package peer is a client implementation (TCP only) to peers in the swarm. |
Package torrentfile parses torrent files or magnet links.
|
Package torrentfile parses torrent files or magnet links. |
Package tracker gets peers from (HTTP/S and UDP) tracker servers.
|
Package tracker gets peers from (HTTP/S and UDP) tracker servers. |
Click to show internal directories.
Click to hide internal directories.