Interface for a Peer.
More...
#include <peerinterface.h>
- Author
- Joris Guisson This is the interface for a Peer, it allows other classes to get statistics about a Peer, and provides some basic functionality provided by a Peer.
Definition at line 57 of file peerinterface.h.
◆ PeerInterface()
bt::PeerInterface::PeerInterface |
( |
const PeerID & |
peer_id, |
|
|
Uint32 |
num_chunks |
|
) |
| |
Constructor, initialize the PeerID and the number of chunks
- Parameters
-
peer_id | The PeerID |
num_chunks | The number of chunks |
◆ averageDownloadSpeed()
virtual bt::Uint32 bt::PeerInterface::averageDownloadSpeed |
( |
| ) |
const |
|
pure virtual |
Get the average download speed since the last unchoke in bytes/sec
Implemented in bt::Peer.
◆ kill()
virtual void bt::PeerInterface::kill |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: