torrent 0.0.1 torrent: ^0.0.1 copied to clipboard
Bittorrent library inplemented in pure Dart.
[WIP, early development stage]
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