deltachat::net::dns

Function sort_by_connection_timestamp

source
async fn sort_by_connection_timestamp(
    context: &Context,
    input: Vec<SocketAddr>,
    alpn: &str,
    host: &str,
) -> Result<Vec<SocketAddr>>
Expand description

Sorts DNS resolution results by connection timestamp in descending order so IP addresses that we recently connected to successfully are tried first.