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); }
private boolean keyServerChanged(Address newKeyServer) { return !Objects.equals(keyServerAddr, newKeyServer); }