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 int
protected int[]
protected int[]
protected byte[][]
protected int[]
Fields inherited from class com.biglybt.net.udp.uc.PRUDPPacketReply
PR_HEADER_SIZE
Fields inherited from class com.biglybt.net.udp.uc.PRUDPPacket
DEFAULT_UDP_TIMEOUT, MAX_PACKET_SIZE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionPRUDPPacketReplyScrape
(int trans_id) protected
PRUDPPacketReplyScrape
(DataInputStream is, int trans_id) -
Method Summary
Modifier and TypeMethodDescriptionint[]
int[]
byte[][]
int[]
void
void
setDetails
(byte[][] _hashes, int[] _complete, int[] _downloaded, int[] _incomplete) Methods inherited from class com.biglybt.net.udp.uc.PRUDPPacketReply
deserialiseReply, registerDecoders
Methods inherited from class com.biglybt.net.udp.uc.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:
serialise
in classPRUDPPacketReply
- Throws:
IOException
-
getString
- Overrides:
getString
in classPRUDPPacketReply
-