java.lang.Object
org.klomp.snark.UDPTrackerClient.HostPort
- Direct Known Subclasses:
UDPTrackerClient.Tracker
- Enclosing class:
UDPTrackerClient
A tracker host and port.
Field Summary
Constructor Summary
Method Summary
All Methods
Field Details
host
The tracker host name.port
protected final int portThe tracker port.
Constructor Details
HostPort
Create a host/port pair.- Parameters:
host- the tracker hostport- the announce port
Method Details
getPort
public int getPort()The announce port.- Returns:
- the port advertised in the announce
hashCode
equals
toString