FAQ Database Discussion Community


How does a peer know another peer is a seed?

bittorrent
When a peer connects to another peer that has all the pieces, how does the connecting peer know that what it connects to is actually a seed (and has all of the pieces)? Are there messages sent between them? In clients like uTorrent, the peer seems to be aware of...

How do I scrape/query a torrent tracker for torrents named similarly?

bittorrent
How do I scrape for torrents of a certain file-name? I've read through the http bittorrent tracker spec, but you seem to only be able to query files based on their specific info name. Is there no way to query for a group of files, or based on file/torrent name?...

Bittorrent bitfield length

python,network-programming,bittorrent
I write BitTorrent client and right now I'm dealing with bitfield messages. The bitfield message looks like below: <len=0001+X><id=5><bitfield> The problem is that the len is always the same while the actual length of message is always different. Here's my python code: message = self.recv(4096) print(len(message)) #prints different numbers every...

Building a distributed bittorrent-SQL database

sql,database,sqlite,bittorrent,bittorrent-sync
I have an idea for a distributed SQL database using the bittorrent protocol for pulling and writing its data. For the sake of argument, lets say this is a messaging application, where thousands of users run a program that contains a messaging window, and an input box for them to...

Implementing find node on torrent kademlia routing table

table,routing,bittorrent,dht,kademlia
I, already, reviewed a number of documents on this topic but there is something not exactly clear. For example bit torrent document (http://www.bittorrent.org/beps/bep_0005.html) states The routing table is subdivided into "buckets" that each cover a portion of the space. An empty table has one bucket with an ID space range...

How to decode bencoded torrent data

python,python-2.7,decode,bittorrent,bencoding
I'm trying to extract size and name from a torrent file with decoding the content of a torrent file with bencode. I did pip install bencode then I tested with one of the line of a torrent file as you can see there. import bencode blabla = 'd8:announce70:http://tracker.t411.io:56969/c5faa6720249d33ff6ba2af48640af89/announce7:comment29:https://www.t411.io/t/524280210:created by19:https://www.t411.io13:creation datei1431685353e4:infod6:lengthi14634059e4:name22:Charlie-Hebdo-1178.pdf12:piece...

Hash calculation in torrent clients

hash,bittorrent,torrent,magnet-uri
I was wondering if someone knows what a "hash" in a BitTorrent client is referring to, it is clearly not the hashcode of the file, but something different. I think thats more a magnet link to a file, but how is this connected to the file itself? I just want...

Bittorrent tracker get request urlencode

java,http,bittorrent
I'm using torrent file (ubuntu-14.04.1-desktop-amd64.iso) from http://torrent.ubuntu.com:6969/ I calculated it's info-hash and it matches with hash on the site. But when i'm trying to send GET request: http://torrent.ubuntu.com:6969/announce?info_hash=%CB%84%EF%BF%BD%EF%BF%BD%0F%29m%EF%BF%BD-l%40%EF%BF%BDz%07%EF%BF%BDx%EF%BF%BD2%3A%14&peer_id=%EF%BF%BD%07d%EF%BF%BD%EF%BF%BD%EF%BF%BDI%EF%BF%BD%5E%EF%BF%BDCo%D8%97d%7D%EF%BF%BDep%EF%BF%BD&port=6881&event=started i get: d14:failure reason63:Requested download is not...