Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if usrsctp support android #692

Open
zuobeixing opened this issue Jan 9, 2024 · 4 comments
Open

if usrsctp support android #692

zuobeixing opened this issue Jan 9, 2024 · 4 comments

Comments

@zuobeixing
Copy link

Hello,Usrsctp's readme say : SCTP stack supporting FreeBSD, OpenBSD, Linux, Mac OS X and Windows.
Android was not mentioned. So I want to know if usrsctp can be used in android system and how can I useed in android system between two hosts?

@muneeb456
Copy link

Android doesn't support pthread_cancel which usrsctp depends on. I'm also looking for a workaround for this

@alvestrand
Copy link

usrsctp was used in WebRTC, which runs on Android, until we switched to dcSCTP. So some workaround was found (but I don't know what it is, or whether or not it was WebRTC specific).

@muneeb456
Copy link

It turns out usrsctp only depends on pthread_cancel in the sample programs. You can turn that off by using
-Dsctp_build_programs=0 and then I was able to build it for Android

https://github.com/sctplab/usrsctp/blob/master/CMakeLists.txt#L76

@lgrahl
Copy link
Contributor

lgrahl commented Nov 11, 2024

If you use the callback-based approach (usrsctp_set_upcall), you can also disable sctp_inet and sctp_inet6 to get rid of some compile issues for older Android versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants