tasks

package
v0.0.0-...-f18cc39 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2013 License: BSD-3-Clause, 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 PeerReaper

type PeerReaper struct{}

func (*PeerReaper) ReapTorrent

func (pr *PeerReaper) ReapTorrent(target *torrent.Torrent)

Loops over a torrent's peers looking for peers which have not announced since 2 * TRACKER_ANNOUNCE_INTERVAL.

The underlying task is called asynchronously and will block access to the underlying list of peers while it runs. TODO: Task timeout.

Jump to

Keyboard shortcuts

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