socksx::socks5Function read_reply
Source pub async fn read_reply<S>(stream: &mut S) -> Result<Address>
Expand description
Reads a SOCKS5 reply from the provided stream and returns the associated address.
§Arguments
stream
- The input stream where the reply will be read from.
§Returns
A Result
containing the address associated with the reply if successful, or an error if the reply indicates failure.