Beispiel #1
0
 protected void handleDiscoveryResponse(PingData data, Address sender) {
   // add physical address (if available) to transport's cache
   Address logical_addr = data.getAddress() != null ? data.getAddress() : sender;
   addDiscoveryResponseToCaches(logical_addr, data.getLogicalName(), data.getPhysicalAddr());
   boolean overwrite = Objects.equals(logical_addr, sender);
   addResponse(data, overwrite);
 }
Beispiel #2
0
 private boolean keyServerChanged(Address newKeyServer) {
   return !Objects.equals(keyServerAddr, newKeyServer);
 }