API Reference

Version 1 (olivier dufour, 04/07/2009 03:29 PM) → Version 2/3 (olivier dufour, 04/07/2009 03:32 PM)


h1. API Reference ClientEngine

List of public h2. Description:

client base
class:

[[ClientEngine]] h2. Events:

StatsUpdate (object sender, [[StatsUpdateEventArgs]] args)

CriticalException (object sender, [[CriticalExceptionEventArgs]] args)

TorrentRegistered (object sender, [[TorrentEventArgs]] args)

TorrentUnregistered (object sender, [[TorrentEventArgs]] args)

h2. Properties:

[[ConnectionManager]] ConnectionManager
IDhtEngine DhtEngine
[[DiskManager]] DiskManager
[[PeerListener]] Listener
bool Disposed
[[PeerListener]] Listener
bool LocalPeerSearchEnabled
bool IsRunning
string PeerId
[[EngineSettings]] Settings

h2. Constructors:

ClientEngine([[EngineSettings]] settings)
ClientEngine([[EngineSettings]] settings, [[PieceWriter]] writer)
ClientEngine([[EngineSettings]] settings, [[PeerListener]] listener)
ClientEngine([[EngineSettings]] settings, [[PeerListener]] listener, [[PieceWriter]] writer)

h2. Methods:

void ChangeListenEndpoint(IPEndPoint endpoint)

bool Contains([[InfoHash]] infoHash)
bool Contains([[Torrent]] torrent)
bool Contains([[TorrentManager]] manager)

void Dispose()


void Register([[TorrentManager]] manager)
void Unregister([[TorrentManager]] manager)

void RegisterDht(IDhtEngine engine)

void StartAll()
WaitHandle[] StopAll()
void PauseAll()

int TotalDownloadSpeed
int TotalUploadSpeed