Skip to main content

decode_addr

Function decode_addr 

Source
pub fn decode_addr(buf: &[u8]) -> Option<(String, u16, usize)>
Expand description

Decodes a SOCKS5 address from the front of buf, returning (host, port, bytes_consumed), or None if truncated / bad ATYP / non-UTF8 domain.