TorrentManager

Version 6 (olivier dufour, 04/07/2009 08:32 PM) → Version 7/10 (olivier dufour, 04/07/2009 08:38 PM)


h1. TorrentManager

h2. Events:

PeerConnected(object sender, PeerConnectionEventArgs args)

PeerDisconnected(object sender, PeerConnectionEventArgs args)

PeersFound(object sender, PeersAddedEventArgs args)

PieceHashed(object sender, PieceHashedEventArgs args)

TorrentStateChanged(object sender, TorrentStateChangedEventArgs args)

h2. Properties:

BitField Bitfield
bool CanUseDht
bool Complete
ClientEngine Engine
Error Error
int PeerReviewRoundsComplete
bool HashChecked
bool HasMetadata
ConnectionMonitor Monitor
int OpenConnections
PeerManager Peers
PieceManager PieceManager
double Progress
string SavePath
TorrentSettings Settings
TorrentState State
DateTime StartTime
TrackerManager TrackerManager
Torrent Torrent
int UploadingTo
bool IsInitialSeeding
InfoHash InfoHash

h2. Constructor:

TorrentManager(Torrent torrent, string savePath, TorrentSettings settings)
TorrentManager(Torrent torrent, string savePath, TorrentSettings settings, string baseDirectory)
TorrentManager(InfoHash infoHash, string savePath, TorrentSettings settings, string torrentSave, List<MonoTorrentCollection<string>> announces)

h2. Methods

void ChangePicker(PiecePicker picker)
List<pre>&lt;</pre>Piece<pre>&gt;</pre> List&lt;Piece&gt; GetActiveRequests()
List&lt;PeerId&gt; GetPeers()
void HashCheck(bool autoStart)
void MoveFiles(string newPath, bool overWriteExisting)

void Pause()
void Start()
WaitHandle Stop()

void LoadFastResume(FastResume data)
FastResume SaveFastResume()

void Dispose()
string ToString( )
bool Equals(object obj)
bool Equals(TorrentManager other)
int GetHashCode()