torrent_task 0.1.1 copy "torrent_task: ^0.1.1" to clipboard
torrent_task: ^0.1.1 copied to clipboard

outdated

Dart library for implement BitTorrent download client.

About #

Dart library for implementing BitTorrent client.

Support: #

Developing:

Other support will come soon.

How to use #

Add package dependencies: torrent_model and torrent_task:

dependencies:
  torrent_model : ^1.0.1
  torrent_task : ^0.0.1

First , create a Torrent model via .torrent file:

  var model = await Torrent.parse('some.torrent');

Second, create a Torrent Task and start it:

  var task = TorrentTask.newTask(model,'savepath');
  task.start();

User can add some listener to monitor TorrentTask running:

  task.onTaskComplete(() => .....);
  task.onFileComplete((String filePath) => .....);

and there is some method to control the TorrentTask:

   // Stop task:
   task.stop();
   // Pause task:
   task.pause();
   // Resume task:
   task.resume();
20
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Dart library for implement BitTorrent download client.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

bencode_dart, dartorrent_common, dht_dart, torrent_model, torrent_tracker

More

Packages that depend on torrent_task