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

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.PRUDPPacketReplyAnnounce2

public class PRUDPPacketReplyAnnounce2
extends PRUDPPacketReply


Field Summary
protected  int[] addresses
           
protected static int BYTES_PER_ENTRY
           
protected  int interval
           
protected  int leechers
           
protected  short[] ports
           
protected  int seeders
           
 
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 PRUDPPacketReplyAnnounce2(DataInputStream is, int trans_id)
           
  PRUDPPacketReplyAnnounce2(int trans_id)
           
 
Method Summary
 int[] getAddresses()
           
 int getInterval()
           
 int getLeechers()
           
 short[] getPorts()
           
 int getSeeders()
           
 String getString()
           
 void serialise(DataOutputStream os)
           
 void setInterval(int value)
           
 void setLeechersSeeders(int _leechers, int _seeders)
           
 void setPeers(int[] _addresses, short[] _ports)
           
 
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

interval

protected int interval

leechers

protected int leechers

seeders

protected int seeders

BYTES_PER_ENTRY

protected static final int BYTES_PER_ENTRY
See Also:
Constant Field Values

addresses

protected int[] addresses

ports

protected short[] ports
Constructor Detail

PRUDPPacketReplyAnnounce2

public PRUDPPacketReplyAnnounce2(int trans_id)

PRUDPPacketReplyAnnounce2

protected PRUDPPacketReplyAnnounce2(DataInputStream is,
                                    int trans_id)
                             throws IOException
Throws:
IOException
Method Detail

setInterval

public void setInterval(int value)

getInterval

public int getInterval()

setLeechersSeeders

public void setLeechersSeeders(int _leechers,
                               int _seeders)

setPeers

public void setPeers(int[] _addresses,
                     short[] _ports)

getAddresses

public int[] getAddresses()

getPorts

public short[] getPorts()

getLeechers

public int getLeechers()

getSeeders

public int getSeeders()

serialise

public void serialise(DataOutputStream os)
               throws IOException
Overrides:
serialise in class PRUDPPacketReply
Throws:
IOException

getString

public String getString()
Overrides:
getString in class PRUDPPacketReply