Membrane.RTSP.Transport behaviour (Membrane RTSP v0.2.0) 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
Functions
Starts and links Transport process.
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
Starts and links Transport process.
The transport process is immediately registered in the TransportRegistry via
Registry
.
Link to this section Callbacks
Specs
execute(request :: binary(), transport_ref(), options :: [Keyword.t()]) :: {:ok, binary()} | {:error, atom()}
Invoked by session process when executing requests.