Function mpstthree::transport::tcp::close::close_tcp[][src]

pub fn close_tcp(
    s: End,
    stream: TcpStream,
    tcp: bool
) -> Result<(), Box<dyn Error>>
This is supported on crate features transport or transport_tcp only.
Expand description

Closes a Tcp session. Synchronises with the partner, and fails if the partner has crashed.

This function is available only if MultiCrusty is built with the "transport" feature or the "transport_tcp" feature.