A command-line BitTorrent client implementing BEP 3: The BitTorrent Protocol Specification (torrent file support) and BEP 9: Extension for Peers to Send Metadata Files (magnet link support).
Run with a magnet link:
go build && ./btclient -type=magnet sample.magnet
Run with a torrent file:
go build && ./btclient -type=torrent sample.torrent
CodeCrafters for their sample .torrent
and .magnet
files.
- Write a script for cross-platform compilation and running