ocaml-multicore / eio

Effects-based direct-style IO for multicore OCaml
Other
562 stars 71 forks source link

Eio.Net: SCTP support #535

Open adatario opened 1 year ago

adatario commented 1 year ago

Stream Control Transmission Protocol (SCTP) is a transport protocol like TCP or UDP that offers message-oriented transport (like UDP) with reliability and congestion-control (like TCP). See also the Wikipedia site.

It's seems to be an interesting transport for applications that use message-oriented networking and want the reliability benefits of TCP without having to do message delimiting or paying the overhead of strict ordering. It would be nice for Eio as modern IO library to offer SCTP support.

SCTP is available on Linux and *BSD, but not yet on Mac OSX or Windows (natively).

avsm commented 1 year ago

It's always good to find a concrete usecase for protocols like this. Last I looked a few years ago, the only real consumer of SCTP is the WebRTC transport layer, and it tunnelled it over UDP in order to get through middleboxes reliably. I'm not sure there's anyone really using SCTP directly, but I'm most happy to be corrected.