org.gudy.azureus2.core3.tracker.protocol.udp
Class PRUDPPacketReplyScrape

java.lang.Object
  extended by com.aelitis.net.udp.uc.PRUDPPacket
      extended by com.aelitis.net.udp.uc.PRUDPPacketReply
          extended by org.gudy.azureus2.core3.tracker.protocol.udp.PRUDPPacketReplyScrape

public class PRUDPPacketReplyScrape
extends PRUDPPacketReply


Field Summary
protected static int BYTES_PER_ENTRY
           
protected  int[] complete
           
protected  int[] downloaded
           
protected  byte[][] hashes
           
protected  int[] incomplete
           
 
Fields inherited from class com.aelitis.net.udp.uc.PRUDPPacketReply
PR_HEADER_SIZE
 
Fields inherited from class com.aelitis.net.udp.uc.PRUDPPacket
DEFAULT_UDP_TIMEOUT, MAX_PACKET_SIZE
 
Constructor Summary
protected PRUDPPacketReplyScrape(DataInputStream is, int trans_id)
           
  PRUDPPacketReplyScrape(int trans_id)
           
 
Method Summary
 int[] getComplete()
           
 int[] getDownloaded()
           
 byte[][] getHashes()
           
 int[] getIncomplete()
           
 String getString()
           
 void serialise(DataOutputStream os)
           
 void setDetails(byte[][] _hashes, int[] _complete, int[] _downloaded, int[] _incomplete)
           
 
Methods inherited from class com.aelitis.net.udp.uc.PRUDPPacketReply
deserialiseReply, registerDecoders
 
Methods inherited from class com.aelitis.net.udp.uc.PRUDPPacket
getAction, getAddress, getPreviousPacket, getSerialisedSize, getTransactionId, hasContinuation, setAddress, setPreviousPacket, setSerialisedSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

PRUDPPacketReplyScrape

public PRUDPPacketReplyScrape(int trans_id)

PRUDPPacketReplyScrape

protected PRUDPPacketReplyScrape(DataInputStream is,
                                 int trans_id)
                          throws IOException
Throws:
IOException
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(DataOutputStream os)
               throws IOException
Overrides:
serialise in class PRUDPPacketReply
Throws:
IOException

getString

public String getString()
Overrides:
getString in class PRUDPPacketReply