torrent

Python Libtorrent doesn't seed

对着背影说爱祢 提交于 2019-12-23 01:44:20
问题 I'm trying to generate a torrent and seed it with python libtorrent, it generates the torrent, but doesn't seed it. I am using libtorrent-0.16.18 with Python3.4 on Ubuntu 14.04 import sys import time import libtorrent as lt fs = lt.file_storage() lt.add_files(fs, "./test.txt") t = lt.create_torrent(fs) t.add_tracker("udp://tracker.publicbt.com:80") t.set_creator("My Torrent") t.set_comment("Test") lt.set_piece_hashes(t, ".") torrent = t.generate() f = open("mytorrent.torrent", "wb") f.write

centos/7/isos/x86_64 下载

二次信任 提交于 2019-12-21 00:53:57
为了节约有限的可用带宽。 不从mirror.centos.org下载iso映像 以下镜子应该可用的ISO映像: http://mirrors.aliyun.com/centos/7/isos/x86_64/ http://mirrors.sina.cn/centos/7/isos/x86_64/ Index of /centos/7/isos/x86_64/ ../ 0_README.txt 01-Apr-2015 08:30 2685 CentOS-7-x86_64-DVD-1503-01.iso 01-Apr-2015 00:05 4310695936 CentOS-7-x86_64-DVD-1503-01.torrent 01-Apr-2015 02:04 165116 CentOS-7-x86_64-Everything-1503-01.iso 01-Apr-2015 00:26 7591690240 CentOS-7-x86_64-Everything-1503-01.torrent 01-Apr-2015 02:04 290297 CentOS-7-x86_64-LiveCD-1503.iso 31-Mar-2015 09:13 729808896 CentOS-7-x86_64-LiveCD-1503.torrent 31-Mar-2015 13:42 28517

Check in browser is torrent-client installed

拥有回忆 提交于 2019-12-13 07:05:24
问题 Is there a way in javascript to check if magnet link is supported by browser (= to check if torrent client is installed on user's pc)? I want to check via javascript if browser opens torrent client by clicking on magnet link or I need to show some additional instructions (if torrent client is not installed). 回答1: Being a Browser, it has no access to installed applications in the OS, but what it does have is access to a list of supported MIME types. In JavaScript you can check it as follows:

Is it possible to include peers in trackerless torrent file?

痴心易碎 提交于 2019-12-12 21:13:08
问题 Can I generate torrent file that already has peers inside without using trackers, open trackers, dht and peer exchange? If yes, how can I do that? The reason I want to do that, is that I want to get peers by DHT and pass that peers to another torrent client that do not supports DHT or peer exchange, and cannot get peers without trackers. I found this, but I don't understand what is nodes, and if it's what I am searching for. http://www.bittorrent.org/beps/bep_0005.html#torrent-file-extensions

Running webtorrent js in browser

三世轮回 提交于 2019-12-11 07:59:26
问题 So that the webtorrent works in the browser is it necessary to be running a webtorrent desktop server for example? Utorrent customers do not have this feature? 回答1: Webtorrent in a browser can only talk to other clients via WebRTC, i.e. it is not compatible with the TCP and uTP transports and UDP-based DHT used by real bittorrent clients, hence it will not provide the same connectivity as a desktop application. Additionally browsers lack many other system APIs, so they can't match the

Libtorrent setting download_limit/upload_limit is not working

馋奶兔 提交于 2019-12-11 07:34:42
问题 I want to rate limit my download/upload speed in my libtorrent client. I am using the following code for this. params = { 'save_path': '.', \ 'storage_mode': lt.storage_mode_t.storage_mode_sparse, \ 'ti': info, 'flags': 0x020 } h = ses.add_torrent(params) h.set_download_limit(100) h.set_upload_limit(100) h.resume() It should download the data at 0.1 kb/sec, but still it is downloading the data at the speed of around 1500 kb/sec. 100.00% complete (down: 1576.0 kb/s up: 55.0 kB/s) Anything I am

Decode (BEncode) torrent files

荒凉一梦 提交于 2019-12-06 11:14:11
问题 Hello I'm making a Console app in VS15 using C#. How can I decode torrent files? To get the Name, Size and Date of the torrent file? I want to donwload a torrent file from a server and then decode it to see the name, size and date. So far i can download a file using WebCLient, but i have search and search for how to decode a torrent file, but without luck. I have tried this library and did this: using (var fs = File.OpenRead("Ubuntu.torrent")) { BDictionary bdictionary = Bencode

Decode (BEncode) torrent files

ぃ、小莉子 提交于 2019-12-04 15:35:13
Hello I'm making a Console app in VS15 using C#. How can I decode torrent files? To get the Name, Size and Date of the torrent file? I want to donwload a torrent file from a server and then decode it to see the name, size and date. So far i can download a file using WebCLient, but i have search and search for how to decode a torrent file, but without luck. I have tried this library and did this: using (var fs = File.OpenRead("Ubuntu.torrent")) { BDictionary bdictionary = Bencode.DecodeDictionary(fs); } But i don't quite understand what bdictionary gives me? I want to output the torrents

Java BitTorrent library [closed]

匿名 (未验证) 提交于 2019-12-03 09:05:37
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Are there any decent BitTorrent libraries for Java? I need to program a simple torrent client, but it would be great if I didn't have to write everything from scratch. 回答1: Snark by Three Rings is a very lightweight bitorrent library that will give you basic torrent features. Was originally written by Mark Wielaard. A github source can be found here https://github.com/akerigan/born-again-snark 回答2: Turn's TTorrent is a pure Java bit torrent library. 回答3: I have created a Bitlet Fork on Github. It's LGPLed, and it's running faster than

P2P协议初步

匿名 (未验证) 提交于 2019-12-03 00:39:02
今天看到一个问题,如何把一个文件快速下发到100w个服务器 如果我们将文件集中式地放在一个服务器或缓存上的话,带宽、连接都会遇到问题。 树状: 索引状: 无论哪种方法,好像速度都不够快,主要受制于资源和带宽。 P2P还是英文Point to Point (点对点)的简称。它是下载术语,意思是在你自己下载的同时,自己的电脑还要继续做主机上传,这种下载方式,人越多速度越快但缺点是对硬盘损伤比较大(在写的同时还要读),还有对内存占用较多,影响整机速度。 P2P的特点:1)无中央服务器,打破了C/S模式;2)用户之间互联并分享文件。 常见的P2P的协议有BitTorrent,这和我们天津大学的PT是一样的协议。 1、BT的简介 BitTorrent(简称BT)是一个文件分发协议,每个下载者在下载的同时不断向其他下载者上传已下载的数据。 而在FTP,HTTP协议中,每个下载者在下载自己所需文件的同时,各个下载者之间没有交互。 当非常多的用户同时访问和下载服务器上的文件时,由于FTP服务器处理能力和带宽的限制,下载速度会急剧下降,有的用户可能访问不了服务器。BT协议与FTP协议不同,特点是下载的人越多,下载速度越快,原因在于每个下载者将已下载的数据提供给其他下载者下载,充分利用了用户的上载带宽。通过一定的策略保证上传速度越快,下载速度也越快。 2、BT的原理解析