infodownloader

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfoDownloader

type InfoDownloader struct {
	Peer  *peer.Peer
	Bytes []byte
	// contains filtered or unexported fields
}

InfoDownloader downloads all blocks of a piece from a peer.

func New

func New(pe *peer.Peer) *InfoDownloader

func (*InfoDownloader) Done

func (d *InfoDownloader) Done() bool

func (*InfoDownloader) GotBlock

func (d *InfoDownloader) GotBlock(index uint32, data []byte) error

func (*InfoDownloader) RequestBlocks

func (d *InfoDownloader) RequestBlocks(queueLength int)

Jump to

Keyboard shortcuts

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