패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.4.1

dtorrent_task

순수한 Dart 언어로 작성된 BitTorrent 다운로드 클라이언트 패키지입니다.

AndroidiOSmacOSWindowsLinux
30일 다운로드
216
좋아요
22
Pub 점수
130

패키지 설치

flutter pub add dtorrent_task

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Dart로 완전히 구현된 BitTorrent 다운로드 클라이언트로, 네이티브 코드 없이 크로스플랫폼 토렌트 다운로드를 가능하게 합니다. 시딩, 다운로드 및 토렌트 파일 관리와 같은 핵심 BitTorrent 기능을 지원합니다. Android, iOS, macOS, Windows, Linux에서 파일 공유 및 피어 투 피어 전송을 위한 가벼운 순수 Dart 솔루션을 찾는 개발자를 위해 설계되었습니다. Flutter 앱에 최소한의 종속성으로 토렌트 기능을 통합하기에 이상적입니다.

사용 사례

  • Flutter 앱에 토렌트 다운로드 통합하기
  • P2P 파일 공유 애플리케이션 구축
  • BitTorrent를 통한 파일 전송 자동화
  • 오프라인 콘텐츠 배포 도구 만들기
  • 크로스 플랫폼 다운로드 매니저 개발

주요 기능

  • 순수 Dart 구현
  • 크로스 플랫폼 지원 (Android, iOS, macOS, Windows, Linux)
  • 경량이며 종속성 없음
  • torrent 파일 파싱 및 다운로드 관리를 지원
  • 다운로드 진행률을 추적하기 위한 내장형 이벤트 기반 아키텍처

적합한 대상

  • Flutter 개발자가 P2P 기능 구축 중
  • 오프라인 또는 탈중앙화 파일 전송이 필요한 앱
  • 네이티브 플랫폼 전용 코드를 피하는 프로젝트
  • 비트토렌트 프로토콜을 탐구하는 교육 프로젝트
  • 경량 토렌트 클라이언트 통합이 필요한 도구

고려 사항

  • 기본적인 BitTorrent 기능에 국한됨(암호화나 포트 포워딩과 같은 고급 기능 없음)
  • 순수한 Dart 실행으로 인해 저사양 기기에서 성능이 다를 수 있습니다
  • 내장된 UI 컴포넌트 없음—사용자 정의 인터페이스 개발 필요
  • 콘텐츠 가용성에 외부 트래커 및 피어에 의존
  • 고용량 또는 기업용 토렌트 작업에는 적합하지 않습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

About

Dart library for implementing BitTorrent client.

codecov

Whole Dart Torrent client contains serival parts :

This package implements regular BitTorrent Protocol and manage above packages to work together for downloading.

BEP Support:

  • [BEP 0003 The BitTorrent Protocol Specification]
  • [BEP 0005 DHT Protocal]
  • [BEP 0006 Fast Extension]
  • [BEP 0010 Extension Protocol]
  • [BEP 0011 Peer Exchange (PEX)]
  • [BEP 0014 Local Service Discovery]
  • [BEP 0015 UDP Tracker Protocal]
  • [BEP 0029 uTorrent transport protocol]
  • [BEP 0055 Holepunch extension]

Developing:

  • [BEP 0009 Extension for Peers to Send Metadata Files]

Other support will come soon.

How to use

This package need to dependency dtorrent_parser:

dependencies:
  dtorrent_parser : ^1.0.4
  dtorrent_task : '>= 0.2.1 < 2.0.0'

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();

Testing

Run tests:

dart test

Run tests with coverage:

dart test --coverage=coverage
dart run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on=lib

Or use the provided script:

dart tool/coverage.dart

The coverage report will be generated at coverage/lcov.info and can be viewed with tools like genhtml or uploaded to services like Codecov.

Coverage is automatically uploaded to Codecov on every push and pull request via GitHub Actions.

카테고리

의존성

의존성 목록 13 개

  • args^2.4.2
  • b_encode_decode^1.0.5
  • bittorrent_dht^0.0.14
  • collection^1.0.0
  • crypto^3.0.3
  • dart_ipify^1.1.1
  • dtorrent_common^1.0.8
  • dtorrent_parser^1.0.9
  • dtorrent_tracker^1.3.20
  • events_emitter2^1.0.3
  • logging^1.2.0
  • mime^1.0.4
  • utp_protocol^1.0.5

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.