pub async fn write_socks4_reply<S: AsyncWrite + Unpin>(
stream: &mut S,
status: Socks4Status,
addr: SocketAddr,
) -> Result<(), Socks4Error>Expand description
Write a SOCKS4 reply to the stream.
Format: +––+––+––+––+––+––+––+––+ | VN | CD | DSTPORT | DSTIP | +––+––+––+––+––+––+––+––+ 1 1 2 4