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 intprotected static final intprotected intprivate final booleanprotected intprotected short[]protected intFields inherited from class com.biglybt.net.udp.uc.PRUDPPacketReply
PR_HEADER_SIZEFields inherited from class com.biglybt.net.udp.uc.PRUDPPacket
DEFAULT_UDP_TIMEOUT, MAX_PACKET_SIZE -
Constructor Summary
ConstructorsModifierConstructorDescriptionPRUDPPacketReplyAnnounce2(int trans_id, boolean ipv6) protectedPRUDPPacketReplyAnnounce2(DataInputStream is, int trans_id, boolean ipv6) -
Method Summary
Modifier and TypeMethodDescriptionbyte[][]intintshort[]getPorts()intbooleanisIPV6()voidvoidsetInterval(int value) voidsetLeechersSeeders(int _leechers, int _seeders) voidsetPeers(byte[][] _addresses, short[] _ports) Methods inherited from class com.biglybt.net.udp.uc.PRUDPPacketReply
deserialiseReply, registerDecodersMethods 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:
serialisein classPRUDPPacketReply- Throws:
IOException
-
getString
- Overrides:
getStringin classPRUDPPacketReply
-