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

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

public class PRUDPPacketRequestAnnounce
extends PRUDPPacketRequest


Field Summary
protected  long downloaded
           
static int EV_COMPLETED
           
static int EV_STARTED
           
static int EV_STOPPED
           
static int EV_UPDATE
           
protected  int event
           
protected  byte[] hash
           
protected  int ip_address
           
protected  long left
           
protected  int num_want
           
protected  byte[] peer_id
           
protected  short port
           
protected  long uploaded
           
 
Fields inherited from class com.aelitis.net.udp.uc.PRUDPPacketRequest
PR_HEADER_SIZE
 
Fields inherited from class com.aelitis.net.udp.uc.PRUDPPacket
DEFAULT_UDP_TIMEOUT, MAX_PACKET_SIZE
 
Constructor Summary
protected PRUDPPacketRequestAnnounce(DataInputStream is, long con_id, int trans_id)
           
  PRUDPPacketRequestAnnounce(long con_id)
           
 
Method Summary
 long getDownloaded()
           
 int getEvent()
           
 byte[] getHash()
           
 int getIPAddress()
           
 long getLeft()
           
 int getNumWant()
           
 byte[] getPeerId()
           
 int getPort()
           
 String getString()
           
 long getUploaded()
           
 void serialise(DataOutputStream os)
           
 void setDetails(byte[] _hash, byte[] _peer_id, long _downloaded, int _event, int _ip_address, int _num_want, long _left, short _port, long _uploaded)
           
 
Methods inherited from class com.aelitis.net.udp.uc.PRUDPPacketRequest
deserialiseRequest, getConnectionId, getReceiveTime, registerDecoders, setReceiveTime
 
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

EV_STARTED

public static final int EV_STARTED
See Also:
Constant Field Values

EV_STOPPED

public static final int EV_STOPPED
See Also:
Constant Field Values

EV_COMPLETED

public static final int EV_COMPLETED
See Also:
Constant Field Values

EV_UPDATE

public static final int EV_UPDATE
See Also:
Constant Field Values

hash

protected byte[] hash

peer_id

protected byte[] peer_id

downloaded

protected long downloaded

event

protected int event

num_want

protected int num_want

left

protected long left

port

protected short port

uploaded

protected long uploaded

ip_address

protected int ip_address
Constructor Detail

PRUDPPacketRequestAnnounce

public PRUDPPacketRequestAnnounce(long con_id)

PRUDPPacketRequestAnnounce

protected PRUDPPacketRequestAnnounce(DataInputStream is,
                                     long con_id,
                                     int trans_id)
                              throws IOException
Throws:
IOException
Method Detail

getHash

public byte[] getHash()

getPeerId

public byte[] getPeerId()

getDownloaded

public long getDownloaded()

getEvent

public int getEvent()

getNumWant

public int getNumWant()

getLeft

public long getLeft()

getPort

public int getPort()

getUploaded

public long getUploaded()

getIPAddress

public int getIPAddress()

setDetails

public void setDetails(byte[] _hash,
                       byte[] _peer_id,
                       long _downloaded,
                       int _event,
                       int _ip_address,
                       int _num_want,
                       long _left,
                       short _port,
                       long _uploaded)

serialise

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

getString

public String getString()
Overrides:
getString in class PRUDPPacketRequest