public interface HostDiscoveryCallback
Modifier and Type | Method and Description |
---|---|
void |
hostDiscovered(AppLib applib,
java.lang.String host,
int hopcount,
long timestamp,
double longitude,
double latitude,
double locationError)
The router has discovered a new peer or updated the information of an
existing peer.
|
void hostDiscovered(AppLib applib, java.lang.String host, int hopcount, long timestamp, double longitude, double latitude, double locationError)
applib
- AppLib instance that is calling the callback.host
- SCAMPI ID of the discovered host.hopcount
- Hopcount to the host.timestamp
- Timestamp of the discovery
(same format as System.currentTimeMillis()
).longitude
- Longitude of the node or Double.NaN
if
not known.latitude
- Latitude of the node or Double.NaN
if
not known.locationError
- Error in the location of the node of the node or
Double.NaN
if not known.