pub fn parse_v2_capability_advertisement(
input: &[u8],
) -> Result<(Vec<String>, usize), ProtocolError>Expand description
Parse a v2 capability advertisement, stopping after its flush-pkt.
Returns (capability tokens, bytes consumed). Bytes after the flush-pkt
are left unconsumed so a later delim-pkt or response-end-pkt can be decoded
separately. The version 2 line is required and is not returned as a capability.