#sctp #transport #sockets #networking #libsctp

sys sctp-sys

Binding to libsctp for linux, and SctpDrv for windows. SctpDrv binding is experimental

8 releases

0.0.8 Sep 23, 2024
0.0.7 Mar 10, 2016
0.0.6 Nov 4, 2015
0.0.5 Aug 2, 2015
0.0.4 Jul 30, 2015

#6 in #sctp

Download history 3/week @ 2024-07-27 21/week @ 2024-08-03 2/week @ 2024-08-10 1/week @ 2024-08-17 8/week @ 2024-08-24 2/week @ 2024-08-31 187/week @ 2024-09-21 32/week @ 2024-09-28 8/week @ 2024-10-05 7/week @ 2024-10-12

307 downloads per month
Used in rust-sctp

MIT/Apache

23KB
411 lines

License Build Status Crates.io

sctp-sys

Documentation

Rust bindings to native sctp library. Under linux, libsctp is used and under windows, SctpDrv is used. However, SctpDrv is not really stable, and some BSOD cases have been reported. Thus, you should not use windows SCTP in production environment, but it still may be usefull for development.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

How to build

Linux

Building in linux requires the libsctp usually provided by lksctp-tools development package.

Windows

Building in windows requires the SctpDrv driver to be installed, and the file libsctpsp.dll should be stored in a place where cargo can find it.

SctpDrv homepage

SctpDrv repository

Note

MAC OS is not supported. Or maybe it is, I don't even know if it's supported and I don't have the required hardware to verify. Any contribution would be welcome.

SctpDrv is not stable, especially in Windows 7 for which BSOD have been reported multiple times, and issues have not been fixed for years. I got a BSOD on my Windows 7 SP1 (64 bits) each time I try to connect a socket. So I can't go further in any kind of validation under windows. When I get more time, I'll try it on other windows versions. Consequently, using SCTP in windows environment should be avoided as much as possible.

Dependencies

~1–270KB