Skip to main content

read_addr

Function read_addr 

Source
pub async fn read_addr<R: AsyncReadExt + Unpin>(
    r: &mut R,
) -> Result<(String, u16)>
Expand description

Reads a SOCKS5 address (ATYP | ADDR | PORT) from any async stream. Domains are decoded strictly (non-UTF8 is an error, matching decode_addr).