Xirsys.Sockets.Transport.DTLS (xturn_sockets v2.2.1)

View Source

DTLS datagram transport for TURN and WebRTC-style secure datagram listeners.

What problem this solves

TURN and WebRTC stacks use DTLS over UDP for encrypted datagram channels. This module is a thin Transport adapter: it delegates to Transport.TLS with protocol: :dtls, reports :datagram framing, and reuses TLS certificate and cipher defaults.

iex> Xirsys.Sockets.Transport.DTLS.framing()
:datagram
iex> Xirsys.Sockets.Transport.DTLS.handle_message({:ssl, :port, "hi"}, :sock)
{:data, "hi", nil}

RFCs