Can Rohc run in Android?

Asked by sleepswallow

Hello Didier:
           I am back to ask for some help from you , thanks first!

 I wondering if ROHC is supported on android platforms, if ok , how to run on android. I want to get some help from you !

   thank Didier very much~~

    Regards,
    sleepswallow

Question information

Language:
English Edit question
Status:
Answered
For:
rohc Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Didier Barvaux (didier-barvaux) said :
#1

Hi,

> I am back to ask for some help from you , thanks first!

You're welcome!

> I wondering if ROHC is supported on android platforms, if ok ,
> how to run on android. I want to get some help from you !

Yes, it runs on Android. The build instructions are available on the project's wiki:
http://rohc-lib.org/wiki/doku.php?id=library-install-sources#cross-compilation_for_android_arm_on_unix-like_systems

Regards,
Didier

Revision history for this message
sleepswallow (sleepswallow128) said :
#2

Hello Didier:
           Thanks you!
           I need to run rohc on application terminal, the OS of application terminal is Android. I want to know the rohc library is regarded as a application protocol to compressed all IP packets, or need to move the rohc library to the andriod kernel in order to compress all the out IP packets. I expect your help.
          Thank your very much!

   Regards,
    sleepswallow

Revision history for this message
Didier Barvaux (didier-barvaux) said :
#3

Sorry, I didn't understand your question :(

Revision history for this message
sleepswallow (sleepswallow128) said :
#4

Hello Didier:
          I want to know how to integrate the rohc library with the andriod kernel in order to compress all IP packets,I need your help.
          Thank your very much!

   Regards,
    sleepswallow

Revision history for this message
Didier Barvaux (didier-barvaux) said :
#5

> I want to know how to integrate the rohc library with the andriod
> kernel in order to compress all IP packets,I need your help.

The Android kernel is a modified Linux kernel, so you can probably (I didn't test it) build the Linux kernel module of the ROHC library and use it to compress packets in the kernel.

For the linux kernel module of ROHC, see the configure option --enable-linux-kernel-module on http://rohc-lib.org/wiki/doku.php?id=library-install-sources-options The instructions are for a standard Linux kernel, not an Android kernel, but it should work the very same way. It will give you a rohc.ko module that you hopefully will be able to load in the Linux kernel of your Android device.

Then, you'll have to make something useful of the ROHC library in the kernel. Indeed the rohc.ko module embeds all the ROHC library in the Linux kernel, but it does nothing by itself. You have to write some code to get packets from somewhere (a network interface for example), compress them, and then send the compressed packets somewhere else (another network interface for example).

An example is provided with the rohc_test.ko kernel module located aside the rohc.ko module in the ROHC sources. This module waits for packets written on a /proc file, compresses them and writes them back on another /proc file. The rohc_test.ko module is to be used with the test/non_regression/test_non_regression_kernel.c test tool.

Hope this will be useful!

Regards,
Didier

Revision history for this message
sleepswallow (sleepswallow128) said :
#6

Hello Didier:

          Thank your first for your detailed reply!
          Because my system is big ,the rohc library will run on the PC terminal and the android iPad, Now I want to know the rohc library can run on the C++ builder of the Window XP or not, thanks !

   Regards,
    sleepswallow

Revision history for this message
Didier Barvaux (didier-barvaux) said :
#7

Hello,

> Now I want to know the rohc library can run on the C++ builder of the
> Window XP or not, thanks !

I don't know. I know for sure that the library builds fine for Windows with MinGW and Cygwin, but I never tested with the Microsoft compiler.

Howto for mingw (cross-compilation for Windows on Unix):
http://rohc-lib.org/wiki/doku.php?id=library-install-sources#cross-compilation_for_microsoft_windows_on_unix-like_system

Howto for cygwin compilation for Windows with some Unix tools from the cygwin project):
http://rohc-lib.org/wiki/doku.php?id=library-install-sources#build_for_microsoft_windows_with_cygwin

Regards,
Didier

Can you help with this problem?

Provide an answer of your own, or ask sleepswallow for more information if necessary.

To post a message you must log in.