Skip to main content

Module listener

Module listener 

Source
Expand description

Unified listener β€” one UDP endpoint that accepts both raw-QUIC MoQT and WebTransport clients, dispatching per connection based on the ALPN the client negotiated during the TLS handshake.

Re-exportsΒ§

use std::net::SocketAddr; πŸ”’
use std::sync::Arc; πŸ”’
use moqtap_codec::version::DraftVersion; πŸ”’
use rustls::pki_types::CertificateDer; πŸ”’
use rustls::pki_types::PrivateKeyDer; πŸ”’
use crate::error::ProxyError; πŸ”’
use crate::transport; πŸ”’
use crate::transport::TransportInstaller; πŸ”’
use crate::transport::TransportProfile; πŸ”’
use crate::types::Leg; πŸ”’

StructsΒ§

Handshake
A client connection whose handshake has not finished. Produced by Listener::accept_handshake.
Listener
A transport-agnostic MoQT listener that accepts both raw-QUIC and WebTransport clients on the same UDP port.
ListenerConfig
Configuration for the proxy’s listener.

EnumsΒ§

AcceptedConn
A client connection that has completed its handshake and is ready for MoQT session handling.
ClientRequest
A client whose handshake has finished. A WebTransport request is still waiting for its answer.
Rejection
How a request is refused.

ConstantsΒ§

H3_ALPN πŸ”’
WebTransport ALPN identifier.

FunctionsΒ§

advertised_alpns πŸ”’
Build the ALPN list the server advertises to clients β€” every MoQT QUIC ALPN we support, plus h3 when the WebTransport feature is on.