Sippet v0.6.2 Sippet.Transports View Source
The Sippet.Transports is responsible for the actual transmission of requests
and responses over network transports.
Network transport protocols are implemented following the
Sippet.Transports.Plug behavior, and they are configured as:
config :sippet, Sippet.Transports,
udp: Sippet.Transports.UDP.Plug
Whenever a message is received by a plug, the Sippet.Transports.Queue is
used to process, validate and route it through the transaction layer or core.
Link to this section Summary
Functions
Verifies if the transport protocol used to send the given message is reliable
Sends a message to the network
Starts the transport process hierarchy
Link to this section Functions
reliable?(message)
View Source
reliable?(Sippet.Message.t()) :: boolean()
reliable?(Sippet.Message.t()) :: boolean()
Verifies if the transport protocol used to send the given message is reliable.
send_message(message, transaction \\ nil)
View Source
send_message(Sippet.Message.t(), GenServer.server() | nil) :: :ok
send_message(Sippet.Message.t(), GenServer.server() | nil) :: :ok
Sends a message to the network.
If specified, the transaction will receive the transport error if occurs.
See Sippet.Transactions.receive_error/2.
This function may block the caller temporarily due to resource constraints.
start_link()
View Source
start_link() :: Supervisor.on_start()
start_link() :: Supervisor.on_start()
Starts the transport process hierarchy.