Class PRUDPPacketReplyAnnounce
java.lang.Object
com.biglybt.net.udp.uc.PRUDPPacket
com.biglybt.net.udp.uc.PRUDPPacketReply
com.biglybt.core.tracker.protocol.udp.PRUDPPacketReplyAnnounce
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int[]protected static final intprotected intprotected short[]Fields inherited from class PRUDPPacketReply
PR_HEADER_SIZEFields inherited from class PRUDPPacket
DEFAULT_UDP_TIMEOUT, MAX_PACKET_SIZE -
Constructor Summary
ConstructorsModifierConstructorDescriptionPRUDPPacketReplyAnnounce(int trans_id) protectedPRUDPPacketReplyAnnounce(DataInputStream is, int trans_id) -
Method Summary
Modifier and TypeMethodDescriptionint[]intshort[]getPorts()voidvoidsetInterval(int value) voidsetPeers(int[] _addresses, short[] _ports) Methods inherited from class PRUDPPacketReply
deserialiseReply, registerDecodersMethods inherited from class PRUDPPacket
getAction, getAddress, getMinimumProtocolVersion, getPreviousPacket, getSerialisedSize, getTransactionId, hasContinuation, setAddress, setPreviousPacket, setSerialisedSize
-
Field Details
-
interval
protected int interval -
BYTES_PER_ENTRY
protected static final int BYTES_PER_ENTRY- See Also:
-
addresses
protected int[] addresses -
ports
protected short[] ports
-
-
Constructor Details
-
PRUDPPacketReplyAnnounce
public PRUDPPacketReplyAnnounce(int trans_id) -
PRUDPPacketReplyAnnounce
- Throws:
IOException
-
-
Method Details
-
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
- Overrides:
serialisein classPRUDPPacketReply- Throws:
IOException
-
getString
- Overrides:
getStringin classPRUDPPacketReply
-