C# Class Universal.Torrent.Client.Peers.PeerList

显示文件 Open project: haroldma/Universal.Torrent

Public Methods

Method Description
Add ( PeerId peer ) : void
Clear ( ) : void
GetFirstInterestedChokedPeer ( ) : PeerId
GetNextPeer ( ) : PeerId
GetOUPeer ( ) : PeerId
Includes ( PeerId peer ) : bool
PeerList ( PeerListType listType ) : System
Sort ( bool isSeeding ) : void
StartScan ( ) : void

Private Methods

Method Description
CompareCandidatePeersWhileDownloading ( PeerId p1, PeerId p2 ) : int
CompareCandidatePeersWhileSeeding ( PeerId p1, PeerId p2 ) : int
CompareNascentPeers ( PeerId p1, PeerId p2 ) : int
CompareOptimisticUnchokeCandidatesWhileDownloading ( PeerId p1, PeerId p2 ) : int
CompareOptimisticUnchokeCandidatesWhileSeeding ( PeerId p1, PeerId p2 ) : int
SecondsBetween ( System.DateTime firstTime, System.DateTime secondTime ) : double

Method Details

Add() public method

public Add ( PeerId peer ) : void
peer Universal.Torrent.Client.PeerConnections.PeerId
return void

Clear() public method

public Clear ( ) : void
return void

GetFirstInterestedChokedPeer() public method

public GetFirstInterestedChokedPeer ( ) : PeerId
return Universal.Torrent.Client.PeerConnections.PeerId

GetNextPeer() public method

public GetNextPeer ( ) : PeerId
return Universal.Torrent.Client.PeerConnections.PeerId

GetOUPeer() public method

public GetOUPeer ( ) : PeerId
return Universal.Torrent.Client.PeerConnections.PeerId

Includes() public method

public Includes ( PeerId peer ) : bool
peer Universal.Torrent.Client.PeerConnections.PeerId
return bool

PeerList() public method

public PeerList ( PeerListType listType ) : System
listType PeerListType
return System

Sort() public method

public Sort ( bool isSeeding ) : void
isSeeding bool
return void

StartScan() public method

public StartScan ( ) : void
return void