Class PRUDPPacketReplyAnnounce2
java.lang.Object
com.biglybt.net.udp.uc.PRUDPPacket
com.biglybt.net.udp.uc.PRUDPPacketReply
com.biglybt.core.tracker.protocol.udp.PRUDPPacketReplyAnnounce2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byte[][]
protected static final int
protected static final int
protected int
private final boolean
protected int
protected short[]
protected int
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
ConstructorsModifierConstructorDescriptionPRUDPPacketReplyAnnounce2
(int trans_id, boolean ipv6) protected
PRUDPPacketReplyAnnounce2
(DataInputStream is, int trans_id, boolean ipv6) -
Method Summary
Modifier and TypeMethodDescriptionbyte[][]
int
int
short[]
getPorts()
int
boolean
isIPV6()
void
void
setInterval
(int value) void
setLeechersSeeders
(int _leechers, int _seeders) void
setPeers
(byte[][] _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
-
is_ipv6
private final boolean is_ipv6 -
interval
protected int interval -
leechers
protected int leechers -
seeders
protected int seeders -
BYTES_PER_ENTRY_IPV4
protected static final int BYTES_PER_ENTRY_IPV4- See Also:
-
BYTES_PER_ENTRY_IPV6
protected static final int BYTES_PER_ENTRY_IPV6- See Also:
-
addresses
protected byte[][] addresses -
ports
protected short[] ports
-
-
Constructor Details
-
PRUDPPacketReplyAnnounce2
public PRUDPPacketReplyAnnounce2(int trans_id, boolean ipv6) -
PRUDPPacketReplyAnnounce2
protected PRUDPPacketReplyAnnounce2(DataInputStream is, int trans_id, boolean ipv6) throws IOException - Throws:
IOException
-
-
Method Details
-
isIPV6
public boolean isIPV6() -
setInterval
public void setInterval(int value) -
getInterval
public int getInterval() -
setLeechersSeeders
public void setLeechersSeeders(int _leechers, int _seeders) -
setPeers
public void setPeers(byte[][] _addresses, short[] _ports) -
getAddresses
public byte[][] getAddresses() -
getPorts
public short[] getPorts() -
getLeechers
public int getLeechers() -
getSeeders
public int getSeeders() -
serialise
- Overrides:
serialise
in classPRUDPPacketReply
- Throws:
IOException
-
getString
- Overrides:
getString
in classPRUDPPacketReply
-