network programming - SCTP protocol support in android -


how can use sctp protocol in android?

i'm aware that android systems don't support sctp default, it's may possible enable inserting sctp kernel module, or rebuilding kernel sctp enabled in modules configuration.

i need insight on issue. possible? how make android support protocol? how build kernel module , insert correctly? if succeed in making system support it, how can use protocol? java api on android support sctp?

going module right way. answer questions:

  • sctp provided kernel module in linux source tree - "config_ip_sctp=m" enable module. , can change "y" hard link, though unfeasible, since you'd have rebuild entire kernel that.

  • the module have still built per kernel version. per vendor, you'd need kernel sources (doable), , compile module against it.

to use: in user mode - create socket calling s = socket (af_inet[6], sock_stream, ipproto_sctp); point, socket apis work same, few exceptions (namely setsockopt, particular protocol type).

from java - in fact support protocol in latest incarnations (jdk7 of milestone 3), java supports doesn't mean dalvik (the "java vm" of android) does. though android have sctp support "in ready", it's not yet in dalvik (at least not in 4.2). create java class, though, in package, wrap native library sctp calls. it's bit trickier in android because of net permissions, still manageable (from experience).


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -