FileDocCategorySizeDatePackage
TRTrackerAnnouncerResponsePeerImpl.javaAPI DocAzureus 3.0.3.42698Fri Dec 29 10:32:08 GMT 2006org.gudy.azureus2.core3.tracker.client.impl

TRTrackerAnnouncerResponsePeerImpl

public 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 bytegetAZVersion()

		return( az_version );
	
public java.lang.StringgetAddress()

		return( address );
	
public intgetHTTPPort()

		return( http_port&0xffff );
	
protected java.lang.StringgetKey()

		return( address + ":" + tcp_port );
	
public byte[]getPeerID()

		return( peer_id );
	
public intgetPort()

		return( tcp_port&0xffff );
	
public shortgetProtocol()

		return( crypto );
	
public java.lang.StringgetSource()

		return( source );
	
public java.lang.StringgetString()

		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 intgetUDPPort()

		return( udp_port&0xffff );
	
public intgetUploadSpeed()

		return( up_speed&0xffff );