chiark / gitweb /
site: Provide transport_record_peers to cope with multiple addresses
This is a complete replacement of transport_record_peer by this new
function. The semantics are similar to the old function, except that
the new one copes with multiple addresses at once (ensuring that they
arrive, in order, at the front of the array). It now needs its
caller to call transport_peers_expire.
We provide a convenience function transport_expire_record_peers for
the various call sites that want to call expire and then record.
As yet, there are no callers of transport_record_peers which pass
naddrs!=1 so there is no overall functional change.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>