定制 coldwinds/glutorrent 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

coldwinds/glutorrent

Composer 安装命令:

composer require coldwinds/glutorrent

包简介

The BEncoded BitTorrent class developed by GluTorrent.

README 文档

README

The BEncoded BitTorrent class developed by GluTorrent.

Unoffical mirror of https://code.google.com/p/glutorrent/

Source: http://web.archive.org/web/20080127172806/http://www.glutorrent.com/developer/

This is a BEncoded BitTorrent class that was originally developed by a company called GluTorrent, and was hosted at http://glutorrent.com/developer.

The http://glutorrent.com domain does not seem to be up any longer, but since this seems to be a useful class, I wanted to make sure others had access to it for posterity.

I'm not the owner or developer of this code, and I have no idea how to get in touch with the appropriate people, so if you know who to contact about this, please let me know. I will not be continuing development of the class. If you want to contribute, let me know and I'll add you as a contributor on the project.

Example

<?php
// http://www.glutorrent.com/developer/
// http://web.archive.org/web/20080127172806/http://www.glutorrent.com/developer/

require 'IBEncodedValue.php';
require 'BEncodingException.class.php';
require 'BEncodingParserException.class.php';
require 'BEncodingInvalidIndexException.class.php';
require 'BEncodingInvalidValueException.class.php';
require 'BEncodingOutOfRangeException.class.php';
require 'BEncodedDictionaryCollection.class.php';
require 'BEncodedDictionary.class.php';
require 'BEncodedDictionaryCollectionIterator.class.php';
require 'BEncodedListCollection.class.php';
require 'BEncodedList.class.php';
require 'BEncodedString.class.php';
require 'BEncodedInteger.class.php';


$MyNewTracker = 'http://tracker.example.com:6969/announce';

// Example of modifying the announce and announce list fields of a torrent

foreach(glob('C:\\torrents\\*.torrent') as $TorrentFile){
    $Torrent = new BEncodedDictionary();
    $Torrent->FromString(file_get_contents($TorrentFile));
    $Torrent['announce-list'] = new BEncodedList();
    $Torrent['announce'] = $MyNewTracker;
    $Torrent['announce-list'][] = new BEncodedList(array($MyNewTracker));
    // Let's see the torrent
    print_r($Torrent->ToArray());
    echo "\n";
    file_put_contents($TorrentFile, $Torrent->Encode());
}
?>

统计信息

  • 总下载量: 51
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: New
  • 更新时间: 2014-09-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固