TorrentManager

Version 1 (olivier dufour, 04/07/2009 03:43 PM) → Version 2/10 (olivier dufour, 04/07/2009 03:44 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)

void Dispose()
string ToString( )
bool Equals(object obj)
bool Equals(TorrentManager other)
List<Piece> GetActiveRequests()

int GetHashCode()
List<PeerId> 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()