[][src]Function quiche::connect

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

Creates a new client-side connection.

The scid parameter is used as the connection's source connection ID, while the optional server_name parameter is used to verify the peer's certificate.

Examples:

let conn = quiche::connect(Some(&server_name), &scid, &mut config)?;