4 ms·
> If you're ever writing a TCP server or client, consider enabling MPTCP by default! How does one do that?
by nicolaslem 3y ago
> If you're ever writing a TCP server or client, consider enabling MPTCP by default!
How does one do that?
- jeroenhd 3y agoDepends on your programming language and platform. If you're using the C API on a Linux kernel, use IPPROTO_MPTCP instead of IPPROTO_TCP. With Go, call SetMultipathTCP(true) on listeners and other connections. On iOS, set MultipathServiceType to NSUrlSessionMultipathServiceType.Handover for your NSUrlSessionConfigurations. Depending on your platform, you may need to do a quick "is MPTCP supported" check with fallbacks, i.e. when you need to support older Android, Windows, or BSDs, or an old (<5.6) Linux kernel.