Package com.biglybt.core.dht.transport
Interface DHTTransportAlternativeContact
- All Known Implementing Classes:
DHTTransportAlternativeContactImpl
public interface DHTTransportAlternativeContact
-
Method Summary
-
Method Details
-
getNetworkType
int getNetworkType() -
getVersion
int getVersion() -
getID
int getID()A good-enough ID to spot duplicates - must be equal to Arrays.hashCode( BEncode( getProperties()));- Returns:
-
getLastAlive
int getLastAlive()- Returns:
- alive time in seconds since "mono time" start - can be negative
-
getAge
default int getAge()Gets the contact's age since last known to be alive in seconds Obviously this varies so don't use it for sorting!- Returns:
-
getProperties
-