Expand description
STUN message framing from RFC 8489 section 5.
Constantsยง
- ATTRIBUTE_
ALIGNMENT_ ๐BYTES - Attributes are padded to 32-bit boundaries, so message length is a multiple of four.
- COOKIE_
OFFSET ๐ - Magic cookie follows the two-byte type and two-byte length.
- HEADER_
BYTES ๐ - Fixed STUN header length, including the 96-bit transaction ID.
- LENGTH_
OFFSET ๐ - Message length follows the two-byte message type.
- MAGIC_
COOKIE ๐ - Network-order STUN magic cookie identifying the updated message format.
Functionsยง
- has_
datagram_ ๐shape - Checks framing after the WebRTC multiplexer has selected STUN. Attributes, method validity, integrity and fingerprints remain unchecked.