Package com.biglybt.core.dht.netcoords
Interface DHTNetworkPosition
- All Known Subinterfaces:
VivaldiPosition
- All Known Implementing Classes:
VivaldiPositionImpl
public interface DHTNetworkPosition
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte
static final byte
static final byte
-
Method Summary
Modifier and TypeMethodDescriptionfloat
estimateRTT
(DHTNetworkPosition other) double[]
byte
int
number of bytes on wireboolean
isValid()
void
void
update
(byte[] other_id, DHTNetworkPosition other, float rtt)
-
Field Details
-
POSITION_TYPE_NONE
static final byte POSITION_TYPE_NONE- See Also:
-
POSITION_TYPE_VIVALDI_V1
static final byte POSITION_TYPE_VIVALDI_V1- See Also:
-
POSITION_TYPE_VIVALDI_V2
static final byte POSITION_TYPE_VIVALDI_V2- See Also:
-
-
Method Details
-
getPositionType
byte getPositionType() -
getSerialisedSize
int getSerialisedSize()number of bytes on wire- Returns:
-
estimateRTT
- Parameters:
other
-- Returns:
- Float.NaN if no value available
-
update
-
isValid
boolean isValid() -
getLocation
double[] getLocation() -
serialise
- Throws:
IOException
-