com.aelitis.azureus.core.dht.netcoords
Interface DHTNetworkPosition
- All Known Subinterfaces:
- VivaldiPosition
- All Known Implementing Classes:
- VivaldiPositionImpl
public interface DHTNetworkPosition
POSITION_TYPE_NONE
static final byte POSITION_TYPE_NONE
- See Also:
- Constant Field Values
POSITION_TYPE_VIVALDI_V1
static final byte POSITION_TYPE_VIVALDI_V1
- See Also:
- Constant Field Values
POSITION_TYPE_VIVALDI_V2
static final byte POSITION_TYPE_VIVALDI_V2
- See Also:
- Constant Field Values
getPositionType
byte getPositionType()
getSerialisedSize
int getSerialisedSize()
- number of bytes on wire
- Returns:
estimateRTT
float estimateRTT(DHTNetworkPosition other)
- Parameters:
other
-
- Returns:
- Float.NaN if no value available
update
void update(byte[] other_id,
DHTNetworkPosition other,
float rtt)
isValid
boolean isValid()
getLocation
double[] getLocation()
serialise
void serialise(java.io.DataOutputStream os)
throws java.io.IOException
- Throws:
java.io.IOException