fast_socks5::util::stream

Function tcp_connect_with_timeout

Source
pub async fn tcp_connect_with_timeout<T>(
    addr: T,
    request_timeout_s: u64,
) -> Result<TcpStream>
where T: ToSocketAddrs,