« Previous - Version 2/3 (diff) - Next » - Current version
olivier dufour, 04/27/2009 12:37 PM


Get statistics

Global

ClientEngine.TotalDownloadSpeed
ClientEngine.TotalUploadSpeed

Torrent

To get statistics of a torrrent you use the ConnectionMonitor object.
It is available with torrentManager.Monitor
Here is list of what you can get:

  • DataBytesDownloaded
  • DataBytesUploaded
  • DownloadSpeed
  • ProtocolBytesDownloaded
  • ProtocolBytesUploaded
  • UploadSpeed

Peer
To have global information about peers:
TorrentManager.Peers.Seeds
TorrentManager.Peers.Leechs
TorrentManager.Peers.Available

You can get detail about each peer in TorrentManager.GetPeers() or from a peerId get in an event.
To get statistics of this particular peer you use the ConnectionMonitor object (same than torrent).
It is available with PeerId.Monitor

And you have few things directely in the peerId object :
  • AmChoking
  • AmInterested
  • BitField
  • ClientApp
  • Encryptor
  • HashFails
  • IsChoking
  • IsConnected
  • IsInterested
  • IsSeeder
  • IsRequestingPiecesCount
  • PeerID
  • PiecesSent
  • PiecesReceived
  • SupportsFastPeer
  • SupportsLTMessages
  • Uri

Also available in: HTML TXT