SCTP Discussions

Text archives Help


[SCTP-Discussion] Sctplib on Android


Chronological Thread 
  • From: Dag Ove <daggy2k AT hotmail.com>
  • To: "sctp-discussion AT sctp.de" <sctp-discussion AT sctp.de>
  • Subject: [SCTP-Discussion] Sctplib on Android
  • Date: Wed, 26 Feb 2014 11:25:07 +0100
  • Importance: Normal
  • List-archive: <http://lists.franken.de/pipermail/sctp-discussion>
  • List-id: SCTP Discussions <sctp-discussion.sctp.de>

Hello,

I am trying to enable SCTP over UDP using the sctplib-1.0.15 as a native library in an Android app, using Androids Native Development Kit (NDK). The installation works since the Android kernel is Linux, but when I call the function "sctp_initLibrary();" I get in return " 1 - adaptation error ". The reason for this is that the function "adl_open_sctp_socket" fails and returns -1 when trying to create a raw socket "sfd = socket(af, SOCK_RAW, IPPROTO_UDP"
Opening raw sockets in Android is not permitted unless having root access/superuser, and I don't want to root.

My question is: Is it possible to use the sctplib-1.0.15 to send SCTP-over-UDP without having root or superuser?

Best Regards,
Dag Ove,
Norway



Archive powered by MHonArc 2.6.19+.

Top of page