Get statistics

Version 1 (olivier dufour, 04/26/2009 06:36 AM)

1 1
h1. Get statistics
2 1
3 1
h2. Torrent
4 1
5 1
To get statistics of a torrrent you have a class ConnectionMonitor.
6 1
It is available with torrentManager.Monitor
7 1
Here is list of what you can get:
8 1
9 1
* DataBytesDownloaded
10 1
* DataBytesUploaded
11 1
* DownloadSpeed
12 1
* ProtocolBytesDownloaded
13 1
* ProtocolBytesUploaded
14 1
* UploadSpeed
15 1
16 1
h2. Global
17 1
18 1
ClientEngine.TotalDownloadSpeed
19 1
ClientEngine.TotalUploadSpeed
20 1
21 1
h2. Peer
22 1
23 1
To get statistics of a Peer you have a class ConnectionMonitor (same than torrent).
24 1
It is available with PeerId.Monitor
25 1
26 1