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

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

public class PRUDPPacketReplyAnnounce
extends PRUDPPacketReply


Field Summary
protected  int[] addresses
           
protected static int BYTES_PER_ENTRY
           
protected  int interval
           
protected  short[] ports
           
 
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 PRUDPPacketReplyAnnounce(java.io.DataInputStream is, int trans_id)
           
  PRUDPPacketReplyAnnounce(int trans_id)
           
 
Method Summary
 int[] getAddresses()
           
 int getInterval()
           
 short[] getPorts()
           
 java.lang.String getString()
           
 void serialise(java.io.DataOutputStream os)
           
 void setInterval(int value)
           
 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

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

PRUDPPacketReplyAnnounce

public PRUDPPacketReplyAnnounce(int trans_id)

PRUDPPacketReplyAnnounce

protected PRUDPPacketReplyAnnounce(java.io.DataInputStream is,
                                   int trans_id)
                            throws java.io.IOException
Throws:
java.io.IOException
Method Detail

setInterval

public void setInterval(int value)

getInterval

public int getInterval()

setPeers

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

getAddresses

public int[] getAddresses()

getPorts

public short[] getPorts()

serialise

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

getString

public java.lang.String getString()
Overrides:
getString in class PRUDPPacketReply