PEPeerListenerpublic interface PEPeerListener Listener for peer events. |
Methods Summary |
---|
public void | addAvailability(PEPeer peer, com.aelitis.azureus.core.peermanager.piecepicker.util.BitFlags peerHavePieces)The peer asserts that their availability should be added to the torrent-global availability pool
The peer must send when, and only when, their availability is known
but not after going to CLOSING state. Upon sending this message, the peer must remember it was
sent, and then later send a corresponding removeAvailability message
| public void | removeAvailability(PEPeer peer, com.aelitis.azureus.core.peermanager.piecepicker.util.BitFlags peerHavePieces)The peer asserts that their availability must now be taken from the torrent-global availability pool
The peer must send this only after having sent a corresponding addAvailability message,
and must not send it in a state prior to CLOSING state. The BitFlags must be complete, with all
pieces from any Bitfield message as well as those from any Have messages.
| public void | sentBadChunk(PEPeer peer, int piece_num, int total_bad_chunks)The peer has sent us a bad piece data chunk.
| public void | stateChanged(PEPeer peer, int new_state)The peer has changed to the given state.
|
|