Git Product home page Git Product logo

torrent-client's Introduction

torrent-client

CircleCI

Tiny BitTorrent client written in Go. Read the blog post: https://blog.jse.li/posts/torrent/

Install

go get github.com/veggiedefender/torrent-client

Usage

Try downloading Debian!

torrent-client debian-10.2.0-amd64-netinst.iso.torrent debian.iso

asciicast

Limitations

  • Only supports .torrent files (no magnet links)
  • Only supports HTTP trackers
  • Does not support multi-file torrents
  • Strictly leeches (does not support uploading pieces)

torrent-client's People

Contributors

linslzero avatar veggiedefender avatar yeung66 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

torrent-client's Issues

Surprising length calculation

// Serialize serializes the handshake to a buffer
func (h *Handshake) Serialize() []byte {
	buf := make([]byte, len(h.Pstr)+49)
...
}

Len(h.Ptr) is always >=1, the string being 19 bytes, so it will never be a problem but reading your article I would just have expected 50. 1 + 19 + 20 + 20. This allocates 19 + 49 bytes.

Tracker response "torrent not found" message

I just cloned the project and tried out downloading with the torrent file within project folder and found the it is not working. I found out the the the tracker response from the get request contains a failure message, “torrent not found".

How to resolve " unsupported protocol scheme 'udp'" ?

2020/10/22 09:54:51 Get "udp://tracker.openbittorrent.com:80?compact=1&downloaded=0&info_hash=%D27%98O%25%0Fe%80%8B%DE%8A%BF%C8%BBs%B0%19%04j%94&left=12424052736&peer_id=%0FC%FEY%23%BA%FA%07%CA%0A%FF%3F%E4%E8%0A%19%84%FA%9D%7D&port=6881&uploaded=0": unsupported protocol scheme "udp"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.