bittorrent

Python BitTorrent Library [closed]

穿精又带淫゛_ 提交于 2019-11-28 20:24:22
Is there a Python BitTorrent library that just works ? I need to tinker around with BitTorrent protocol for a research project and I don't want to reinvent the wheel and write my own implementation of the protocol (and neither I am capable of doing so) I looked at the sources for the official BitTorrent client, but that is not what I am looking for. A library/ module is what I would prefer. Thanks! Frédéric Hamidi You might want to have a look at the python-libtorrent project. It's a wrapper around the libtorrent C++ library, which claims to be efficient and easy to use. abhijeet BitTornado is

PHP Module for reading torrent files [closed]

给你一囗甜甜゛ 提交于 2019-11-28 17:36:58
Is there a PHP module that you can use to programmatically read a torrent to find out information about it, Seeders for instance? Svish I have used these functions in a small website I made once. Think I found them with a php bittorrent tracker called OpenTracker or something, but can't find the website... You wont find the seeders in the torrent file though. The torrent file just contain info about the files, hash codes and lengths etc. And some tracker information I believe. How many seeders and such you will have to get from the tracker. You can read about the protocal at BitTorrent.org .

Connecting P2P over NAT?

末鹿安然 提交于 2019-11-28 17:13:28
I started to explore the option of connecting with other using a p2p connection, so I coded a simple socket program in JAVA for android devices in which the users can share simple messages p2p (I didn't have any idea about NAT then). I got to know about NAT, so I now need to establish a TCP connection with another user which uses a server for discovery but payload is transferred p2p. I have also looked at XMPP(a very good and detailed explanation of how protocol works is here ) and UPnP but I dont know how to implement them. Another interesting question that arises is of BitTorrent because

What is the best approach to handle large file uploads in a rails app?

不羁岁月 提交于 2019-11-28 16:41:52
问题 I am interested in understanding the different approaches to handling large file uploads in a Rails application, 2-5Gb files. I understand that in order to transfer a file of this size it will need to be broken down into smaller parts, I have done some research and here is what I have so far. Server-side config will be required to accept large POST requests and probably a 64bit machine to handle anything over 4Gb. AWS supports multipart upload. HTML5 FileSystemAPI has a persistent uploader

Convert NSData bytes to NSString?

强颜欢笑 提交于 2019-11-28 15:43:08
I'm trying to use the BEncoding ObjC class to decode a .torrent file. NSData *rawdata = [NSData dataWithContentsOfFile:@"/path/to/the.torrent"]; NSData *torrent = [BEncoding objectFromEncodedData:rawdata]; When I NSLog torrent I get the following: { announce = <68747470 3a2f2f74 6f727265 6e742e75 62756e74 752e636f 6d3a3639 36392f61 6e6e6f75 6e6365>; comment = <5562756e 74752043 44207265 6c656173 65732e75 62756e74 752e636f 6d>; "creation date" = 1225365524; info = { length = 732766208; name = <7562756e 74752d38 2e31302d 6465736b 746f702d 69333836 2e69736f>; "piece length" = 524288; .... How do

How does a DHT in a Bittorent client get “bootstrapped”?

两盒软妹~` 提交于 2019-11-28 15:06:10
问题 If I have a torrent w/o any trackers in it, and I just started a bittorent client so I have no peers yet...how do I know who to first connect with in the DHT? It seems like I would have to know at least ONE node in the DHT to get started.... 回答1: When a BitTorrent client connects to DHT, there is an initial place that it goes to find peers. With the original BitTorrent client, there was a url to bitorrent.com that would help get things started. I tried looking up the reference but I couldn't

Magnet links library for PHP

被刻印的时光 ゝ 提交于 2019-11-28 06:39:54
问题 Does anyone here know of a magnet-URI -parser for PHP? To validate it, or maybe to extract some information from it? 回答1: In case you're looking for something like this: Magnet URI: magnet:?xt=urn:sha1:YNCKHTQCWBTRNJIV4WNAE52SJUQCZO5C (valid) Display Name .... (dn): eXact Length .... (xl): eXact Topic ..... (xt): urn:sha1:YNCKHTQCWBTRNJIV4WNAE52SJUQCZO5C Acceptable Source (as): eXact Source .... (xs): Keyword Topic ... (kt): Manifest Topic .. (mt): address TRacker . (tr): take a look at the

A BitTorrent client completely written in C#?

青春壹個敷衍的年華 提交于 2019-11-28 03:16:06
Is there a BitTorrent client written completely (I mean completely) written in C# ? I am aware of the BitTorrent clients written in mono, I absolutely love it. Are there any other opensource BitTorrent clients other than MonoTorrent & BitSharp written in C# which is under development? Just wondering how much of an interest an "opensource bit torrent client in C#" would generate amongst C# programmer folks out there. EDIT: Do check out Michael Stum's Pumpkin torrent on http://pumpkintorrent.codeplex.com/ @Michael: thanks for sharing the project url. @Allan: thanks for MonoTorrent ;) MonoTorrent

A BitTorrent client completely written in C#?

别来无恙 提交于 2019-11-27 19:15:24
问题 Is there a BitTorrent client written completely (I mean completely) written in C# ? I am aware of the BitTorrent clients written in mono, I absolutely love it. Are there any other opensource BitTorrent clients other than MonoTorrent & BitSharp written in C# which is under development? Just wondering how much of an interest an "opensource bit torrent client in C#" would generate amongst C# programmer folks out there. EDIT: Do check out Michael Stum's Pumpkin torrent on http://pumpkintorrent

Given a .torrent file how do I generate a magnet link in python? [closed]

旧城冷巷雨未停 提交于 2019-11-27 18:35:32
I need a way to convert .torrents into magnet links. Would like a way to do so in python. Are there any libraries that already do this? You can do this with the bencode module, extracted from BitTorrent. To show you an example, I downloaded a torrent ISO of Ubuntu from here: http://releases.ubuntu.com/12.04/ubuntu-12.04.1-desktop-i386.iso.torrent Then, you can parse it in Python like this: >>> import bencode >>> torrent = open('ubuntu-12.04.1-desktop-i386.iso.torrent', 'r').read() >>> metadata = bencode.bdecode(torrent) A magnet hash is calculated from only the "info" section of the torrent