luasocket icon indicating copy to clipboard operation
luasocket copied to clipboard

[feat-req] SCTP{,6} support

Open msva opened this issue 13 years ago • 11 comments

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.

msva avatar Aug 03 '12 14:08 msva

It would be great to support SCTP. But definitely not to be considered for LuaSocket 2.1 :)

mwild1 avatar Aug 03 '12 14:08 mwild1

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.

SoniEx2 avatar Mar 24 '19 23:03 SoniEx2

  1. 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.

  2. Someone would have to actually do it. Why not take a stab at it yourself and submit a PR?

ewestbrook avatar Mar 24 '19 23:03 ewestbrook

  1. yeah, but that's like saying "you'd still need C for the Lua binaries".
  2. 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.

SoniEx2 avatar Mar 24 '19 23:03 SoniEx2

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?

diegonehab avatar Mar 25 '19 14:03 diegonehab

I only care about native SCTP. on other OSes it can segfault for all I care.

SoniEx2 avatar Mar 25 '19 14:03 SoniEx2

We don't have this "luxury".

diegonehab avatar Mar 25 '19 14:03 diegonehab

just error then

SoniEx2 avatar Mar 25 '19 15:03 SoniEx2

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.

msva avatar Mar 25 '19 16:03 msva

additionally to SCTP would be Unix sockets which should also error on Windows ofc.

SoniEx2 avatar Mar 25 '19 16:03 SoniEx2

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.

alerque avatar Nov 10 '23 20:11 alerque