Package com.biglybt.pif.peers
Interface PeerEvent
public interface PeerEvent
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The peer asserts that their availability should be added to the torrent-global availability pool.static final int
The peer has sent us a bad piece data chunk.static final int
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.static final int
peer state has changed data - Integer holding one of the state values defined in Peer -
Method Summary
-
Field Details
-
ET_STATE_CHANGED
static final int ET_STATE_CHANGEDpeer state has changed data - Integer holding one of the state values defined in Peer- See Also:
-
ET_BAD_CHUNK
static final int ET_BAD_CHUNKThe peer has sent us a bad piece data chunk. data - Integer[2] piece_num piece that failed hash check total_bad_chunks total number of bad chunks sent by this peer so far- See Also:
-
ET_ADD_AVAILABILITY
static final int ET_ADD_AVAILABILITYThe peer asserts that their availability should be added to the torrent-global availability pool. The peer must send this when, and only when, their availability is known (such as after receiving a bitfield message) but not after going to CLOSING state. After having sent this message, the peer must remember they've done so and later send a corresponding removeAvailability message at an appropriate time. data - peerHavePieces boolean[] of pieces availabile- See Also:
-
ET_REMOVE_AVAILABILITY
static final int ET_REMOVE_AVAILABILITYThe 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. data - peerHavePieces boolean[] of pieces no longer available- See Also:
-
-
Method Details
-
getType
int getType() -
getData
Object getData()
-