Skip to content
项目

关于

A BitTorrent client implementation in Go

效率与自动化

这些数字如何统计

可以做什么

  • Support for all Bencode types (strings, integers, lists, dictionaries)
  • Robust error handling and validation
  • Parse .torrent files (both single-file and multi-file torrents)
  • Info hash calculation

实测星标增长

24小时
0
7天
-1
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Go-Torrent

A BitTorrent client implementation in Go that supports downloading files using the BitTorrent protocol. This project implements the core functionality of a BitTorrent client, including torrent file parsing, peer discovery, and file downloading.

Features

  • Bencode Encoding/Decoding

    • Support for all Bencode types (strings, integers, lists, dictionaries)
    • Robust error handling and validation
  • Torrent File Processing

    • Parse .torrent files (both single-file and multi-file torrents)
    • Info hash calculation
    • Piece hash extraction
    • Support for all standard torrent file fields
  • Peer Discovery and Communication

    • HTTP tracker support
    • Peer handshake protocol
    • Complete BitTorrent message protocol
    • Peer connection management
  • Download Functionality

    • Piece and block management
    • Concurrent downloads
    • Progress tracking
    • File assembly for both single and multi-file torrents
    • Storage management with block-level granularity

Project Structure

.
├── cmd/          # Command-line interface and main application
├── internal/     # Internal packages
│   ├── bencode/  # Bencode encoding/decoding
│   ├── torrent/  # Torrent file processing
│   ├── tracker/  # Tracker protocol implementation
│   ├── peer/     # Peer communication
│   └── download/ # Download management
└── pkg/          # Public packages

Requirements

  • Go 1.21 or later

Installation

git clone https://github.com/yourusername/go-torrent.git
cd go-torrent
go mod download

Usage

[Usage instructions will be added as the project matures]

Development Status

This project is actively under development. Current implementation status can be found in checkpoint.md.

Planned Features

  • Magnet link support
  • Metadata exchange protocol
  • DHT (Distributed Hash Table) support

Acknowledgments

探索相关项目

加载中…