Expand description
This is the main module of the mptcp-rs
crate.
It provides the core functionality for working with Multipath TCP (MPTCP) sockets.
The crate is organized into several submodules:
socket
: Contains the MPTCP socket implementation.std
(feature: “std”): Provides a standard library implementation for MPTCP.tokio
(feature: “tokio”): Provides a Tokio-based implementation for MPTCP.async_std
(feature: “async-std”): Provides an async-std-based implementation for MPTCP.
Example:
use mptcp::MptcpStreamExt;
use std::net::{SocketAddr, TcpStream};
use std::io;
fn connect(addr: SocketAddr) -> io::Result<TcpStream> {
TcpStream::connect_mptcp(addr).map(|stream| stream.into())
}
Enums§
- Mptcp
Opt - Represents whether to fallback to TCP in case MPTCP isn’t available.
- Mptcp
Socket - Represents a Multipath TCP (MPTCP) socket.
- Mptcp
Status
Traits§
- Mptcp
Ext - A trait for extending the functionality of types that implement
AsRawFd
. - Mptcp
Listener Ext - Extension trait for std::net::TcpListener.
- Mptcp
Stream Ext - Extension trait for std::net::TcpStream to support MPTCP.