luasocket
luasocket copied to clipboard
[feat-req] SCTP{,6} support
Is it any plans to support sctp/sctp6 ( http://en.wikipedia.org/wiki/SCTP http://en.wikipedia.org/wiki/SCTP_packet_structure ) in luasocket? :) It will be very usefull for writing some server software (and in Prosody, for example, too).
As far as inet.c has been rewriten to has IPv6 support — adding sctp{,6} support will not be a big deal, imho.
It would be great to support SCTP. But definitely not to be considered for LuaSocket 2.1 :)
I kinda need SCTP support for a thing I plan on making so it'd be very useful to have this as it'd give me the option to use Lua instead of C.
-
Some C code would still need to be written, whether it's put directly in an application or added to the LuaSocket library so that your Lua code can invoke it.
-
Someone would have to actually do it. Why not take a stab at it yourself and submit a PR?
- yeah, but that's like saying "you'd still need C for the Lua binaries".
- I'm currently busy with other stuff (studying), which is why I said "a thing I plan on making" - it'll be a while until I can work on it properly, sadly.
Shouldn't be too hard to do on Linux and other OSes that support it. On Windows and Mac (I think) we'd have to use an external library. There doesn't seem to be much demand for this, right?
I only care about native SCTP. on other OSes it can segfault for all I care.
We don't have this "luxury".
just error then
Shouldn't be too hard to do on Linux and other OSes that support it. On Windows and Mac (I think) we'd have to use an external library. There doesn't seem to be much demand for this, right?
Modern OSX do support SCTP, AFAIK.
additionally to SCTP would be Unix sockets which should also error on Windows ofc.
For precedent, UNIX socket support already works.
If anybody wants SCTP contributions are welcome, but I don't know of any current maintainers with the impetus to work on this right now.