pub fn decode_addr(buf: &[u8]) -> Option<(String, u16, usize)>
Decodes a SOCKS5 address from the front of buf, returning (host, port, bytes_consumed), or None if truncated / bad ATYP / non-UTF8 domain.
buf
(host, port, bytes_consumed)
None