parse_auth_response

Function parse_auth_response 

Source
pub fn parse_auth_response(
    data: &[u8],
    sink: &mut dyn DiagnosticSink,
) -> Result<HostList, DPlusError>
Expand description

Parse a DPlus auth TCP response into a HostList.

Lenient parser: malformed records are skipped with a diagnostic. Fatal errors (truncated chunk header, invalid flags, invalid type byte, undersized chunk length) return Err.

ยงErrors

Returns DPlusError::AuthChunk* variants for fatal format errors.