Class PRUDPPacketRequestAnnounce
java.lang.Object
com.biglybt.net.udp.uc.PRUDPPacket
com.biglybt.net.udp.uc.PRUDPPacketRequest
com.biglybt.core.tracker.protocol.udp.PRUDPPacketRequestAnnounce
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longstatic final intstatic final intstatic final intstatic final intprotected intprotected byte[]protected intprotected longprotected intprotected byte[]protected shortprotected longFields inherited from class PRUDPPacketRequest
PR_HEADER_SIZEFields inherited from class PRUDPPacket
DEFAULT_UDP_TIMEOUT, MAX_PACKET_SIZE -
Constructor Summary
ConstructorsModifierConstructorDescriptionPRUDPPacketRequestAnnounce(long con_id) protectedPRUDPPacketRequestAnnounce(DataInputStream is, long con_id, int trans_id) -
Method Summary
Modifier and TypeMethodDescriptionlongintgetEvent()byte[]getHash()intlonggetLeft()intbyte[]intgetPort()longvoidvoidsetDetails(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 PRUDPPacketRequest
deserialiseRequest, getConnectionId, getReceiveTime, registerDecoders, setReceiveTimeMethods inherited from class PRUDPPacket
getAction, getAddress, getMinimumProtocolVersion, getPreviousPacket, getSerialisedSize, getTransactionId, hasContinuation, setAddress, setPreviousPacket, setSerialisedSize
-
Field Details
-
EV_STARTED
public static final int EV_STARTED- See Also:
-
EV_STOPPED
public static final int EV_STOPPED- See Also:
-
EV_COMPLETED
public static final int EV_COMPLETED- See Also:
-
EV_UPDATE
public static final int EV_UPDATE- See Also:
-
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 Details
-
PRUDPPacketRequestAnnounce
public PRUDPPacketRequestAnnounce(long con_id) -
PRUDPPacketRequestAnnounce
protected PRUDPPacketRequestAnnounce(DataInputStream is, long con_id, int trans_id) throws IOException - Throws:
IOException
-
-
Method Details
-
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
- Overrides:
serialisein classPRUDPPacketRequest- Throws:
IOException
-
getString
- Overrides:
getStringin classPRUDPPacketRequest
-