Function deltachat::net::update_connection_history

source ยท
pub(crate) async fn update_connection_history(
    context: &Context,
    alpn: &str,
    host: &str,
    port: u16,
    addr: &str,
    now: i64,
) -> Result<()>
Expand description

Update the timestamp of the last successfull connection to the given host and port with the given application protocol alpn.

addr is the string representation of IP address. If connection is made over a proxy which does its own DNS resolution, addr should be the same as host.