torrent 0.0.2 copy "torrent: ^0.0.2" to clipboard
torrent: ^0.0.2 copied to clipboard

unlisted

Bittorrent library inplemented in pure Dart.

[WIP, This library is currently under heavy development and isn't ready for production]

Usage #

Example:

import 'package:logging/logging.dart';
import 'package:torrent/torrent.dart';
import 'package:torrent/auxlib.dart';

main() async {
  BtLog.setLevel(Level.FINER);

  final info = await loadFile('test/data/hot.torrent');
  dumpInfo(info, brief: true);

  final agent = BtAgentCore();
  final torrent = agent.addTorrent(info);

  await torrent.verifyLocalData();
  print(torrent.percent() * 100);
  print(torrent.absentPieces());

  torrent.startAllTrackers();
  torrent.downloadAll();
}

BEPs #

Implemented #

Partially implemented #

Planned #

Roadmap to v0.1 #

  • UPnP
  • NAT-PMP

Experimental tracker server #

TBD

Features and bugs #

Please file feature requests and bugs at the issue tracker.

Lisence #

The MIT License (MIT)

Copyright (c) 2019 xuty

4
likes
25
pub points
0%
popularity

Publisher

unverified uploader

Bittorrent library inplemented in pure Dart.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

ansicolor, async, base32, collection, easy_udp, logging, path, torrent_bencode, torrent_parser

More

Packages that depend on torrent