Skip to main content

Crate moq_transport_iroh

Crate moq_transport_iroh 

Source
Expand description

MoQ sessions over iroh connections.

Everything needed to turn an iroh connection into a moq_net::Session, and nothing about nodes, routes or publications:

MoQ runs on raw QUIC. Raw QUIC has no request URI, so the request path and any token travel in the MoQ SETUP.

use iroh::EndpointId;
use moq_transport_iroh::Transport;

let transport = Transport::connect(&endpoint, peer).await?;
let (session, driver) = moq_net::Client::new()
    .connect(moq_net::time::Instant::now(), transport)
    .await?;

Structs§

RecvStream
The receiving half of a stream.
SendGroup
A send group, from send_group on a Transport.
SendStream
The sending half of a stream.
Transport
moq-net’s poll transport over one iroh connection.

Enums§

Error
An error from dialing or accepting a MoQ connection.
TransportError
A failure of a Transport’s connection or of one of its streams.

Constants§

ALPN
The newest MoQ version this build speaks.
HANDSHAKE_TIMEOUT
How long a connection may take to open its MoQ session, dialed or accepted.

Functions§

alpns
Returns every ALPN a server accepts, newest MoQ version first.