tokio only.Expand description
Async tokio socket adapter driving the sans-IO ingest server session
over a real tokio::net::TcpStream — the Layer-2 adapter (see
docs/rtmp.md § Layer-2 adapter; mirrors the
rtsp_runtime::io tokio adapter shape in this same workspace).
ServerSession never touches a socket: it turns inbound bytes into
(reply bytes, [ServerEvent]s). This module owns the stream as a
tokio_util::codec::Framed whose decoder feeds every inbound chunk to
ServerSession::handle_data, writes the reply bytes back, and returns
the events — no business logic beyond that plumbing.
ServerSession::handle_data buffers partial handshake/chunk input
internally (see its doc comment), so unlike an RTSP or HTTP adapter this
one does not need to detect message boundaries itself: any chunk size,
split anywhere, is fine to feed straight through.
Every awaited IO is bounded by RtmpTimeouts (W1 SP1.3).
Structs§
- Async
Rtmp Client - A publishing RTMP client over a stream (a
TcpStreamby default): the adapter forClientSession, mirroringRtmpConnection. Every awaited IO is bounded byRtmpTimeouts. - Async
Rtmp Server - A
tokio::net::TcpListenerthat accepts inbound RTMP publishers and hands back a drivenRtmpConnectionper connection. - Rtmp
Connection - One accepted RTMP connection: a stream (a
TcpStreamby default) driving aServerSession. - Rtmp
Timeouts - Explicit bounds on every awaited IO of the RTMP adapters (W1 SP1.3): no wait is unbounded.