|
| | PeerManager (Torrent &tor) |
| |
| void | addPotentialPeer (const net::Address &addr, bool local) |
| |
|
void | bitSetReceived (Peer *p, const BitSet &bs) |
| | Bitset received by a peer.
|
| |
|
bool | chokerNeedsToRun () const |
| | Does the choker need to run again.
|
| |
| void | closeAllConnections () |
| |
|
bool | connectedTo (const PeerID &peer_id) |
| | Are we connected to a Peer given it's PeerID ?
|
| |
| Peer::Ptr | findPeer (PieceDownloader *pd) |
| |
| Peer::Ptr | findPeer (Uint32 peer_id) |
| |
|
const BitSet & | getAvailableChunksBitSet () const |
| | Get a BitSet of all available chunks.
|
| |
|
ChunkCounter & | getChunkCounter () |
| | Get the chunk counter.
|
| |
|
Uint32 | getNumConnectedLeechers () const |
| | Get the number of connected leechers.
|
| |
|
Uint32 | getNumConnectedPeers () const |
| | Get the number of connected peers.
|
| |
|
Uint32 | getNumConnectedSeeders () const |
| | Get the number of connected seeders.
|
| |
|
Uint32 | getNumPending () const |
| | Get the number of pending peers we are attempting to connect to.
|
| |
| QList< Peer::Ptr > | getPeers () const |
| |
|
const Torrent & | getTorrent () const |
| | Get the Torrent.
|
| |
|
void | have (Peer *p, Uint32 index) |
| | Have message received by a peer.
|
| |
|
bool | isPartialSeed () const |
| | Are we a partial seed.
|
| |
|
bool | isPexEnabled () const |
| | Is PEX eanbled.
|
| |
|
bool | isStarted () const |
| | Is the peer manager started.
|
| |
| void | killSeeders () |
| |
| void | killStalePeers () |
| |
| void | killUninterested () |
| |
| void | loadPeerList (const QString &file) |
| |
| void | newConnection (mse::EncryptedPacketSocket::Ptr sock, const PeerID &peer_id, Uint32 support) |
| |
| void | pause () |
| |
| void | peerAuthenticated (Authenticate *auth, PeerConnector::WPtr pcon, bool ok, ConnectionLimit::Token::Ptr token) |
| |
|
void | pex (const QByteArray &arr) |
| | A PEX message was received.
|
| |
|
void | pieceReceived (const Piece &p) |
| | A Piece was received.
|
| |
|
void | portPacketReceived (const QString &ip, Uint16 port) |
| | A port packet was received.
|
| |
|
void | rerunChoker () |
| | Rerun the choker.
|
| |
| void | savePeerList (const QString &file) |
| |
|
void | sendHave (Uint32 index) |
| | Send a have message to all peers.
|
| |
|
void | setGroupIDs (Uint32 up, Uint32 down) |
| | Set the group IDs of each peer.
|
| |
|
void | setPartialSeed (bool partial_seed) |
| | Set if we are a partial seed or not.
|
| |
|
void | setPexEnabled (bool on) |
| | Enable or disable PEX.
|
| |
|
void | setPieceHandler (PieceHandler *ph) |
| | Set the piece handler.
|
| |
|
void | setSuperSeeding (bool on, const BitSet &chunks) |
| | Enable or disable super seeding.
|
| |
|
void | setWantedChunks (const BitSet &bs) |
| |
| void | start (bool superseed) |
| |
| void | stop () |
| |
| void | unpause () |
| |
| void | update () |
| |
|
Uint32 | uploadRate () const |
| | Get the combined upload rate of all peers in bytes per sec.
|
| |
|
void | visit (PeerVisitor &visitor) |
| | Visit all peers.
|
| |
- Author
- Joris Guisson This class manages all Peer objects. It can also open connections to other peers.
Definition at line 66 of file peermanager.h.