Skip to main content

Module browser

Module browser 

Source
Expand description

The security gate for one browser-audio ICE component.

This module is the I/O-free boundary from docs/specs/webrtc-audio.md §7. The live socket owner consults it before handing bytes to ICE, DTLS, SRTP or SRTCP; keeping it free of sockets makes every hostile-input and ordering branch deterministic in a test.

Structs§

BrowserComponentSnapshot
Read-only facts for diagnostics and the independent browser proof.
ComponentIngress
I/O-free ingress and key-installation gate for one browser component.
IngressCounts
Exact, monotonic drops decided by ComponentIngress.
SelectedComponent
The exact ICE pair allowed to carry DTLS and protected media.

Enums§

BrowserStartError
Why the browser component could not advance from ICE through verified DTLS keying.
ComponentError
A rejected component transition.
ComponentState
Security phase of one component generation.
IngressClass
One protocol carried by the nominated component.
IngressDisposition
Result of applying both classification and the component security state.
IngressDrop
Why a datagram changed no browser-component protocol state.

Constants§

MAX_DATAGRAM
Largest inbound datagram the browser-audio component admits to a protocol parser.
MAX_PROFILE_TASKS
Maximum browser-profile tasks alive at one instant (spec §7.2).

Functions§

classify_datagram
Classify one bounded datagram by RFC 5764 §5.1.2 and RFC 5761 §4.