简体   繁体   中英

What is the best approach for IPC between Java and C++ apps running on the same machine?

I would like to implement a robust IPC solution between a single JVM applet and a C++ application running on the same machine. What is the best approach for doing so?

Any suggestions will be greatly appreciated! Thanks!

sockets are about your best (only reasonable?) choice. although if you are running an applet, you will have to deal with access permissions issues (signing the applet will probably solve these).

Sockets as a transport protocol.

JSON as a message protocol, with optional length header or trailing zero if required.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM