pub fn parse_method_negotiation(
buf: &[u8],
) -> Result<(Vec<u8>, &[u8]), Socks5Error>Expand description
Parse the SOCKS5 method negotiation bytes synchronously.
Returns (methods, remaining) on success, or a Socks5Error if the
buffer is truncated or the version byte is wrong. Exposed for fuzzing.