MOQX.Transport.Quicer (moqx v0.8.1)

Copy Markdown View Source

MOQX.Transport implementation backed by quicer.

This module is intentionally thin. It normalizes quicer's handle-oriented API and owner-process messages without embedding any MOQT protocol logic.

Summary

Functions

Closes a listener handle.

Returns the local address bound to a listener or connection.

Returns exact stream info for a quicer stream handle.

Builds exact stream info from QUIC stream ID and local endpoint role.

Functions

close_listener(listener, timeout \\ 0)

@spec close_listener(MOQX.Transport.listener(), timeout()) :: :ok | {:error, term()}

Closes a listener handle.

local_address(handle)

@spec local_address(MOQX.Transport.listener() | MOQX.Transport.connection()) ::
  {:ok, {:inet.ip_address(), :inet.port_number()}} | {:error, term()}

Returns the local address bound to a listener or connection.

stream_info(stream, local_role, initiator)

@spec stream_info(MOQX.Transport.stream(), :client | :server, :local | :peer) ::
  {:ok, MOQX.Transport.Conn.Stream.Info.t()} | {:error, term()}

Returns exact stream info for a quicer stream handle.

stream_info_from_id(stream_id, local_role, initiator)

@spec stream_info_from_id(non_neg_integer(), :client | :server, :local | :peer) ::
  MOQX.Transport.Conn.Stream.Info.t()

Builds exact stream info from QUIC stream ID and local endpoint role.