Class PRUDPPacketReplyScrape
java.lang.Object
com.biglybt.net.udp.uc.PRUDPPacket
com.biglybt.net.udp.uc.PRUDPPacketReply
com.biglybt.core.tracker.protocol.udp.PRUDPPacketReplyScrape
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected int[]protected int[]protected byte[][]protected int[]Fields inherited from class PRUDPPacketReply
PR_HEADER_SIZEFields inherited from class PRUDPPacket
DEFAULT_UDP_TIMEOUT, MAX_PACKET_SIZE -
Constructor Summary
ConstructorsModifierConstructorDescriptionPRUDPPacketReplyScrape(int trans_id) protectedPRUDPPacketReplyScrape(DataInputStream is, int trans_id) -
Method Summary
Modifier and TypeMethodDescriptionint[]int[]byte[][]int[]voidvoidsetDetails(byte[][] _hashes, int[] _complete, int[] _downloaded, int[] _incomplete) Methods inherited from class PRUDPPacketReply
deserialiseReply, registerDecodersMethods inherited from class PRUDPPacket
getAction, getAddress, getMinimumProtocolVersion, getPreviousPacket, getSerialisedSize, getTransactionId, hasContinuation, setAddress, setPreviousPacket, setSerialisedSize
-
Field Details
-
BYTES_PER_ENTRY
protected static final int BYTES_PER_ENTRY- See Also:
-
hashes
protected byte[][] hashes -
complete
protected int[] complete -
incomplete
protected int[] incomplete -
downloaded
protected int[] downloaded
-
-
Constructor Details
-
PRUDPPacketReplyScrape
public PRUDPPacketReplyScrape(int trans_id) -
PRUDPPacketReplyScrape
- Throws:
IOException
-
-
Method Details
-
setDetails
public void setDetails(byte[][] _hashes, int[] _complete, int[] _downloaded, int[] _incomplete) -
getHashes
public byte[][] getHashes() -
getComplete
public int[] getComplete() -
getDownloaded
public int[] getDownloaded() -
getIncomplete
public int[] getIncomplete() -
serialise
- Overrides:
serialisein classPRUDPPacketReply- Throws:
IOException
-
getString
- Overrides:
getStringin classPRUDPPacketReply
-