Function quiche::accept

source · []
pub fn accept(
    scid: &ConnectionId<'_>,
    odcid: Option<&ConnectionId<'_>>,
    from: SocketAddr,
    config: &mut Config
) -> Result<Connection>
Expand description

Creates a new server-side connection.

The scid parameter represents the server’s source connection ID, while the optional odcid parameter represents the original destination ID the client sent before a stateless retry (this is only required when using the retry() function).


let conn = quiche::accept(&scid, None, from, &mut config)?;