pub struct WireImages { /* private fields */ }Expand description
The reading end of a WireImageTap.
Implementations§
Source§impl WireImages
impl WireImages
Sourcepub fn unwatch(&self, ssrc: u32)
pub fn unwatch(&self, ssrc: u32)
Stop copying the packets ssrc sends. Images already held stay until taken.
Sourcepub fn retransmit_on(&self, repair_ssrc: u32)
pub fn retransmit_on(&self, repair_ssrc: u32)
Give every FlexFEC retransmission (R=1, RFC 8627 section 4.2.2.3) that leaves on the
repair stream repair_ssrc the wire image of the source packet it carries: the packet
as it left, header extensions written below the generator included, which is what the
repair packets protect and what the receiver XORs them with. A retransmission is made
above the extension writers (the NACK responder buffers the packet before the TWCC
sender numbers it); without this its image differs from the one that left, and a
receiver that rebuilds a neighbour with it rebuilds garbage.
Sourcepub fn stop_retransmit_on(&self, repair_ssrc: u32)
pub fn stop_retransmit_on(&self, repair_ssrc: u32)
Stop rewriting the retransmissions of repair_ssrc.
Sourcepub fn take(&self) -> Vec<TaggedPacket>
pub fn take(&self) -> Vec<TaggedPacket>
The packets that left since the last call, oldest first, each with the instant it was released to the network.