Skip to main content

close_and_shutdown

Function close_and_shutdown 

Source
pub fn close_and_shutdown(
    stream: &mut TcpStream,
    circuit: u32,
    gen: u32,
    client: bool,
) -> Result<()>
Expand description

Send opcode-8 Close with envelope (circuit, gen) then TCP half-close.