Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 677 Bytes

README.md

File metadata and controls

9 lines (5 loc) · 677 Bytes

Using Multipath TCP in Rust

Rust and C are pretty much the same for the No framework example. You simply need to open a socket with the IPPROTO_MPTCP protocol. For that you can use the Socket2 library see here.

If you plan to use a more complex library (HTTP library, Web framework, ...), it may not be as straigthforward as just using Socket2. Let's take Hyper for example, they support differents IO type, allowing you to create a Socket2's socket and pass it to Server::from_tcp.