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 TypeFieldDescriptionprivate final intprivate byte[][]static final intstatic final intstatic final intprivate static final int[]private intprivate intprivate short[]private intFields inherited from class PRUDPPacketReply
PR_HEADER_SIZEFields inherited from class PRUDPPacket
DEFAULT_UDP_TIMEOUT, MAX_PACKET_SIZE -
Constructor Summary
ConstructorsModifierConstructorDescriptionPRUDPPacketReplyAnnounce2(int trans_id, int _address_type) protectedPRUDPPacketReplyAnnounce2(DataInputStream is, int trans_id, int _address_type) -
Method Summary
Modifier and TypeMethodDescriptionbyte[][]intintintshort[]getPorts()intvoidvoidsetInterval(int value) voidsetLeechersSeeders(int _leechers, int _seeders) voidsetPeers(byte[][] _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
-
AT_IPV4
public static final int AT_IPV4- See Also:
-
AT_IPV6
public static final int AT_IPV6- See Also:
-
AT_I2P
public static final int AT_I2P- See Also:
-
BYTES_PER_ENTRY
private static final int[] BYTES_PER_ENTRY -
address_type
private final int address_type -
interval
private int interval -
leechers
private int leechers -
seeders
private int seeders -
addresses
private byte[][] addresses -
ports
private short[] ports
-
-
Constructor Details
-
PRUDPPacketReplyAnnounce2
public PRUDPPacketReplyAnnounce2(int trans_id, int _address_type) -
PRUDPPacketReplyAnnounce2
protected PRUDPPacketReplyAnnounce2(DataInputStream is, int trans_id, int _address_type) throws IOException - Throws:
IOException
-
-
Method Details
-
getAddressType
public int getAddressType() -
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
-