Skip to main content

answer_connection

Function answer_connection 

Source
pub fn answer_connection(
    closed: Option<&Closed>,
    connection: Connection,
    now: &dyn Fn() -> u64,
    rng: &mut impl CryptoRng,
) -> Answered
Expand description

Answers a connection that another replica opened, as answer does once it accepted one: so that a program can wait for connections without holding its library, and answer each with the library it holds then. Without a library, as when it is locked, the other replica is told to try again later.