Membrane.RTSP.Transport behaviour (Membrane RTSP v0.2.1) View Source

This module represents the Transport contract.

Struct contains module that will be used when executing request and reference used for resolving transport process.

Link to this section Summary

Callbacks

Invoked by session process when executing requests.

Link to this section Types

Specs

t() :: %Membrane.RTSP.Transport{key: transport_ref(), module: module()}

Specs

transport_ref() :: {:via, Registry, {TransportRegistry, reference()}}

Link to this section Functions

Specs

new(module(), reference()) :: t()
Link to this function

start_link(transport, connection_info, options \\ [])

View Source

Starts and links Transport process.

The transport process is immediately registered in the TransportRegistry via Registry.

Link to this section Callbacks

Link to this callback

execute(request, transport_ref, options)

View Source

Specs

execute(request :: binary(), transport_ref(), options :: [Keyword.t()]) ::
  {:ok, binary()} | {:error, atom()}

Invoked by session process when executing requests.