API Reference xturn_sockets v#2.2.0

View Source

Modules

Accept loop for connection-oriented transports (TCP, TLS).

Per-tier packet framing state machine.

Frames packets using a fixed-size length header.

No framing: each push/3 is one immediately poppable packet.

Reordering decorator over any inner Accumulator.

Runtime configuration for :xturn_sockets.

Transport-level connection context passed to handlers.

Per-connection process: owns accumulator state and fully drains after each read.

Datagram listener that drains every whole packet from each inbound datagram.

Drain loop: pop every whole packet from a tier, dispatch the handler, repeat.

Business logic for one pipeline tier.

Declarative multi-tier pipeline specification.

One compiled pipeline tier: accumulator, handler, and dispatch strategy.

Dynamic supervisor for Connection processes.

Normalizes {module, opts} or a bare module into {module, opts}.

Optional :telemetry events under [:xturn_sockets, event].

Worker that owns one async pipeline tier's accumulator and handler state.

Dynamic supervisor for async pipeline tier sessions (dispatch: :task / :pool).

Named pool supervisor for dispatch: :pool tiers.

Named supervisor for dispatch: :task tiers (unbounded by default).

Uniform socket I/O behaviour for TCP, UDP, TLS, DTLS, and SCTP.

DTLS datagram transport. Delegates to Transport.TLS with protocol: :dtls.

SCTP transport (:gen_sctp) when the OTP driver is available.

Plain TCP transport (:gen_tcp).

TLS stream transport (:ssl).

UDP transport (:gen_udp).