tubes 0.6.4

Host/Client protocol based on pipenet
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod accept;
mod client;
mod server;

pub(crate) use accept::accept_loop;
pub(crate) use client::client_loop;
pub(crate) use server::server_loop;

#[allow(clippy::needless_pass_by_value)]
pub(crate) fn is_aborted_error(err: Box<dyn std::error::Error>) -> bool {
    match err.downcast_ref::<std::io::Error>() {
        Some(e) => e.kind() == std::io::ErrorKind::ConnectionAborted,
        None => false,
    }
}