C# Class OctoTorrent.Tracker.SimpleTorrentManager

This class is a TorrentManager which uses .Net Generics datastructures, such as Dictionary and List to manage Peers from a Torrent.
Exibir arquivo Open project: Eskat0n/OctoTorrent Class Usage Examples

Public Methods

Method Description
GetPeers ( ) : List
SimpleTorrentManager ( ITrackable trackable, IPeerComparer comparer, Tracker tracker ) : Common.System

Private Methods

Method Description
Add ( Peer peer ) : void

Adds the peer to the tracker

ClearZombiePeers ( System.DateTime cutoff ) : void
GetPeers ( BEncodedDictionary response, int count, bool compact ) : void

Retrieves a semi-random list of peers which can be used to fulfill an Announce request

Remove ( Peer peer ) : void

Removes the peer from the tracker

Update ( OctoTorrent.Tracker.AnnounceParameters par ) : void

Updates the peer in the tracker database based on the announce parameters

UpdateCounts ( ) : void

Method Details

GetPeers() public method

public GetPeers ( ) : List
return List

SimpleTorrentManager() public method

public SimpleTorrentManager ( ITrackable trackable, IPeerComparer comparer, Tracker tracker ) : Common.System
trackable ITrackable
comparer IPeerComparer
tracker Tracker
return Common.System