Crate mptcp

Source
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§

MptcpOpt
Represents whether to fallback to TCP in case MPTCP isn’t available.
MptcpSocket
Represents a Multipath TCP (MPTCP) socket.
MptcpStatus

Traits§

MptcpExt
A trait for extending the functionality of types that implement AsRawFd.
MptcpListenerExt
Extension trait for std::net::TcpListener.
MptcpStreamExt
Extension trait for std::net::TcpStream to support MPTCP.