Class TRTrackerAnnouncerResponsePeerImpl
java.lang.Object
com.biglybt.core.tracker.client.impl.TRTrackerAnnouncerResponsePeerImpl
- All Implemented Interfaces:
TRTrackerAnnouncerResponsePeer
,DownloadAnnounceResultPeer
,Cloneable
public class TRTrackerAnnouncerResponsePeerImpl
extends Object
implements TRTrackerAnnouncerResponsePeer, Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final byte
private boolean
private final short
private final short
private final byte[]
private final String
private final short
private final short
private final short
Fields inherited from interface com.biglybt.pif.download.DownloadAnnounceResultPeer
PEERSOURCE_BT_TRACKER, PEERSOURCE_DHT, PEERSOURCE_INCOMING, PEERSOURCE_PEX, PEERSOURCE_PLUGIN, PROTOCOL_CRYPT, PROTOCOL_NORMAL
-
Constructor Summary
ConstructorsConstructorDescriptionTRTrackerAnnouncerResponsePeerImpl
(String _source, byte[] _peer_id, String _address, int _tcp_port, int _udp_port, int _http_port, short _crypto, byte _az_version, int _up_speed) -
Method Summary
-
Field Details
-
source
-
peer_id
private final byte[] peer_id -
address
-
tcp_port
private final short tcp_port -
udp_port
private final short udp_port -
http_port
private final short http_port -
crypto
private final short crypto -
az_version
private final byte az_version -
up_speed
private final short up_speed -
cached
private boolean cached
-
-
Constructor Details
-
TRTrackerAnnouncerResponsePeerImpl
-
-
Method Details
-
getClone
-
getSource
- Specified by:
getSource
in interfaceDownloadAnnounceResultPeer
-
getPeerID
public byte[] getPeerID()- Specified by:
getPeerID
in interfaceDownloadAnnounceResultPeer
-
getAddress
- Specified by:
getAddress
in interfaceDownloadAnnounceResultPeer
-
getPort
public int getPort()- Specified by:
getPort
in interfaceDownloadAnnounceResultPeer
-
getUDPPort
public int getUDPPort()- Specified by:
getUDPPort
in interfaceDownloadAnnounceResultPeer
-
getHTTPPort
public int getHTTPPort()- Specified by:
getHTTPPort
in interfaceTRTrackerAnnouncerResponsePeer
-
getProtocol
public short getProtocol()- Specified by:
getProtocol
in interfaceDownloadAnnounceResultPeer
-
getAZVersion
public byte getAZVersion()- Specified by:
getAZVersion
in interfaceTRTrackerAnnouncerResponsePeer
-
getUploadSpeed
public int getUploadSpeed()- Specified by:
getUploadSpeed
in interfaceTRTrackerAnnouncerResponsePeer
-
getKey
- Specified by:
getKey
in interfaceTRTrackerAnnouncerResponsePeer
-
setCached
public void setCached(boolean _cached) -
isCached
public boolean isCached()- Specified by:
isCached
in interfaceTRTrackerAnnouncerResponsePeer
-
compareTo
- Specified by:
compareTo
in interfaceTRTrackerAnnouncerResponsePeer
-
getString2
-
getString
-