TRTrackerAnnouncerResponsePeerImplpublic class TRTrackerAnnouncerResponsePeerImpl extends Object implements TRTrackerAnnouncerResponsePeer
Fields Summary |
---|
private String | source | private byte[] | peer_id | private String | address | private short | tcp_port | private short | udp_port | private short | http_port | private short | crypto | private byte | az_version | private short | up_speed |
Constructors Summary |
---|
public TRTrackerAnnouncerResponsePeerImpl(String _source, byte[] _peer_id, String _address, int _tcp_port, int _udp_port, int _http_port, short _crypto, byte _az_version, int _up_speed)
source = _source;
peer_id = _peer_id;
address = _address;
tcp_port = (short)_tcp_port;
udp_port = (short)_udp_port;
http_port = (short)_http_port;
crypto = _crypto;
az_version = _az_version;
up_speed = (short)_up_speed;
|
Methods Summary |
---|
public byte | getAZVersion()
return( az_version );
| public java.lang.String | getAddress()
return( address );
| public int | getHTTPPort()
return( http_port&0xffff );
| protected java.lang.String | getKey()
return( address + ":" + tcp_port );
| public byte[] | getPeerID()
return( peer_id );
| public int | getPort()
return( tcp_port&0xffff );
| public short | getProtocol()
return( crypto );
| public java.lang.String | getSource()
return( source );
| public java.lang.String | getString()
return( "ip=" + address +
(tcp_port==0?"":(",tcp_port=" + getPort())) +
(udp_port==0?"":(",udp_port=" + getUDPPort())) +
(http_port==0?"":(",http_port=" + getHTTPPort())) +
",prot=" + crypto +
(up_speed==0?"":(",up=" + getUploadSpeed())) +
",ver=" + az_version );
| public int | getUDPPort()
return( udp_port&0xffff );
| public int | getUploadSpeed()
return( up_speed&0xffff );
|
|