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 int
protected int
protected short[]
Fields inherited from class com.biglybt.net.udp.uc.PRUDPPacketReply
PR_HEADER_SIZE
Fields inherited from class com.biglybt.net.udp.uc.PRUDPPacket
DEFAULT_UDP_TIMEOUT, MAX_PACKET_SIZE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionPRUDPPacketReplyAnnounce
(int trans_id) protected
PRUDPPacketReplyAnnounce
(DataInputStream is, int trans_id) -
Method Summary
Modifier and TypeMethodDescriptionint[]
int
short[]
getPorts()
void
void
setInterval
(int value) void
setPeers
(int[] _addresses, short[] _ports) Methods inherited from class com.biglybt.net.udp.uc.PRUDPPacketReply
deserialiseReply, registerDecoders
Methods inherited from class com.biglybt.net.udp.uc.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:
serialise
in classPRUDPPacketReply
- Throws:
IOException
-
getString
- Overrides:
getString
in classPRUDPPacketReply
-