pieceverifier

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 PieceVerifier

type PieceVerifier struct {
	Piece  *piece.Piece
	Peer   *peer.Peer
	Buffer []byte
	Length uint32
	OK     bool
}

func New

func New(p *piece.Piece, pe *peer.Peer, buf []byte, length uint32) *PieceVerifier

func (*PieceVerifier) Run

func (v *PieceVerifier) Run(resultC chan *PieceVerifier, closeC chan struct{})

Jump to

Keyboard shortcuts

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