go-bt

module
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2023 License: Apache-2.0

README

BT - Another Implementation For Golang Build Status GoDoc License

A pure golang implementation of BitTorrent library, which is inspired by dht and torrent.

Install

$ go get -u github.com/xgfone/go-bt

Features

  • Support Go1.11+.
  • Support IPv4/IPv6.
  • Multi-BEPs implementation.
  • Pure Go implementation without CGO.
  • Only library without any denpendencies. For the command tools, see bttools.

The Implemented Specifications

Example

See godoc or bttools.

Directories

Path Synopsis
Package bencode implements encoding and decoding of bencoded objects, which has a similar API to the encoding/json package and many other serialization formats.
Package bencode implements encoding and decoding of bencoded objects, which has a similar API to the encoding/json package and many other serialization formats.
Package dht implements the DHT Protocol.
Package dht implements the DHT Protocol.
Package downloader is used to download the torrent or the real file from the peer node by the peer wire protocol.
Package downloader is used to download the torrent or the real file from the peer node by the peer wire protocol.
internal
Package krpc supplies the KRPC message used by DHT.
Package krpc supplies the KRPC message used by DHT.
Package metainfo is used to encode or decode the metainfo of the torrent file and the MagNet link.
Package metainfo is used to encode or decode the metainfo of the torrent file and the MagNet link.
Package peerprotocol implements the core BT peer protocol.
Package peerprotocol implements the core BT peer protocol.
Package tracker supplies some common type interfaces of the BT tracker protocol.
Package tracker supplies some common type interfaces of the BT tracker protocol.
httptracker
Package httptracker implements the tracker protocol based on HTTP/HTTPS.
Package httptracker implements the tracker protocol based on HTTP/HTTPS.
udptracker
Package udptracker implements the tracker protocol based on UDP.
Package udptracker implements the tracker protocol based on UDP.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL