[][src]Function quiche::accept

pub fn accept(
    scid: &[u8],
    odcid: Option<&[u8]>,
    config: &mut Config
) -> Result<Pin<Box<Connection>>>

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).

Examples:

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