torrentfile

package
v0.0.0-...-287ff3b Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TorrentFile

type TorrentFile struct {
	Announce     string
	Comment      string
	CreationDate int64
	InfoHash     [20]byte
	PieceHashes  [][20]byte
	PieceLength  int
	Length       int
	Name         string
}

func New

func New(r io.Reader) (*TorrentFile, error)

func (*TorrentFile) GetPeers

func (t *TorrentFile) GetPeers(peerId [20]byte, port uint16) ([]peers.Peer, error)

Jump to

Keyboard shortcuts

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