Skip to main content

dial_quic

Function dial_quic 

Source
pub async fn dial_quic(
    addr: &str,
    options: &QuicDialOptions,
) -> Result<(Transport, Option<Vec<u8>>), DialError>
Expand description

Dial a QUIC server, and report which ALPN it chose.

The second return value is the protocol the server chose from options.alpn, None if it selected none. DraftVersion::from_alpn names a draft for five of the six; drafts 07-14 share moq-00 and settle their version in CLIENT_SETUP.

The endpoint is dropped when the dial returns — quinn keeps the connection’s driver alive independently.