Can we use System IPC in Android NDK code

Here I want to use System IPCs methods like

  <sys/msg.h>   /* SysV message queues */
  <sys/ipc.h>   /* General IPC definitions */

Here, my Android NDK code is in C, and I used the IPC message queue mechanism to communicate for another C application.

So, please let me know if there is a way to achieve this IPC goal? How can I implement this IPC mechanism in Android NDK code?

+5
source share
1 answer

A year ago, I wrote a review on this topic. Here is a part of it:

2 IPC Unix mechanisms

Unix IPC mechanisms include:

  • Unix Signals.
  • Unix pipes.
  • Unix domain sockets.

Unix System-V IPC Android. Bionic IPC System-V, semget(), shmget(), msgget(). , [11].

2.1 Unix

, UNIX, wikipedia:" A , Unix, Unix-like POSIX- . , , . , , . . , . ". , unix Android. , . IPC .

2.2 Unix pipe

- , . unix : . , Android- . , . , , , . Linux, sdcards FAT32 . , unix- Android ( ). .

2.3 Unix

Unix, Unix-, : . Unix unix- . , . Android, , unix: LocalServerSocket LocalSocket. , unix. , unix .

[11] Android ndk. NDK android-ndk-r6b

+12

All Articles