isDtlsPacket

fnbool isDtlsPacket(ubyte firstByte) @safe pure nothrow @nogc

Demultiplexes DTLS and RTP/RTCP packets (RFC 5764 §5.1.2).

Examines the first byte to determine if a received packet is a DTLS record or an RTP/RTCP packet.

Parameters

firstByteThe first byte of the received packet.

Returns

true if the packet is DTLS, false if it is RTP/RTCP.