Class PRUDPPacketReplyScrape
- java.lang.Object
-
- com.biglybt.net.udp.uc.PRUDPPacket
-
- com.biglybt.net.udp.uc.PRUDPPacketReply
-
- com.biglybt.core.tracker.protocol.udp.PRUDPPacketReplyScrape
-
public class PRUDPPacketReplyScrape extends PRUDPPacketReply
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
BYTES_PER_ENTRY
protected int[]
complete
protected int[]
downloaded
protected byte[][]
hashes
protected int[]
incomplete
-
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
Constructors Modifier Constructor Description PRUDPPacketReplyScrape(int trans_id)
protected
PRUDPPacketReplyScrape(java.io.DataInputStream is, int trans_id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
getComplete()
int[]
getDownloaded()
byte[][]
getHashes()
int[]
getIncomplete()
java.lang.String
getString()
void
serialise(java.io.DataOutputStream os)
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 Detail
-
BYTES_PER_ENTRY
protected static final int BYTES_PER_ENTRY
- See Also:
- Constant Field Values
-
hashes
protected byte[][] hashes
-
complete
protected int[] complete
-
incomplete
protected int[] incomplete
-
downloaded
protected int[] downloaded
-
-
Method Detail
-
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
public void serialise(java.io.DataOutputStream os) throws java.io.IOException
- Overrides:
serialise
in classPRUDPPacketReply
- Throws:
java.io.IOException
-
getString
public java.lang.String getString()
- Overrides:
getString
in classPRUDPPacketReply
-
-