Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/nigeltroy/bittorrent-client-go

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/nigeltroy/bittorrent-client-go

  • v0.0.0-20220119170346-3b597ab51a01
  • Source
  • Go
  • Socket score

Version published
Created
Source

bittorrent-client-go

A simple BitTorrent client in Go.

Motivation

I wanted to learn Go and async programming! An actual fully-featured BitTorrent client is a huge undertaking (see FOSS project qBittorrent), so this only aims to be an extremely simplified version of one.

Project progress

Components of program

  • CLI
  • GTK UI
  • API
    • Torrent
      • URL
      • File
      • Info hash/Magnet link
    • Tracker
    • Peers
    • Client

BitTorrent protocol spec fields

Information on the following fields can be found in the BitTorrent protocol spec (or a spec change request) or in the spec in the BitTorrent Wiki. A simplified version of this program only needs to support some non-optional fields.

Metainfo
  • info
    • piece length
    • pieces
    • private
    • Single file mode
      • name
      • length
      • md5sum
    • Multiple file mode
      • name
      • files
        • length
        • path
        • md5sum
  • announce
  • announce-list
  • creation date
  • comment
  • created by
  • encoding
  • url-list ??? - I found this while trying to debug the Arch torrent, but it isn't documented in the BitTorrent spec
Trackers
  • TCP announce
  • UDP announce
  • DHT announce
  • Async announcing
  • Reannouncing every <Response.interval> seconds
Request
  • info_hash
  • peer_id
  • port
  • uploaded
  • downloaded
  • left
  • compact
  • no_peer_id
  • event
  • ip
  • numwant
  • key
  • trackerid
Response
  • failure reason
  • warning message
  • interval
  • min interval
  • tracker id
  • complete
  • incomplete
  • peers
    • Dictionary model
      • peer id
      • ip
      • port
    • Binary model
Peers
  • Handshake

FAQs

Package last updated on 19 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc