socksx::socks5

Function write_reply

Source
pub async fn write_reply<S>(stream: &mut S, reply: Socks5Reply) -> Result<()>
where S: AsyncWrite + Unpin,
Expand description

Writes a SOCKS5 reply to the provided stream.

§Arguments

  • stream - The output stream where the reply will be written.
  • reply - The SOCKS5 reply code to be written.

§Returns

A Result indicating success or an error.