parse_indirect_probe

Function parse_indirect_probe 

Source
pub fn parse_indirect_probe(raw: &Bytes) -> Option<IndirectProbe>
Expand description

Parse an indirect probe Interest name.

Returns (intermediary_name, target_name, nonce) if the name matches /ndn/local/nd/probe/via/<intermediary...>/<target...>/<nonce>.

Encoding convention: the intermediary name length is encoded as a single NameComponent carrying a 1-byte count before the intermediary components. This is the same convention used by NFD for parameterised Interest names — the length is explicit so there is no ambiguity between the end of the intermediary and the start of the target.

Format: probe/via/<n:u8>/<intermediary×n>/<target...>/<nonce>