What is the best approach for IPC between Java and C++?

前端 未结 5 993
日久生厌
日久生厌 2020-12-08 11:52

I would like to implement a robust IPC solution between a single JVM app (one process, potentially multiple threads) and a native C++ application that is linked to a C++ dll

5条回答
  •  广开言路
    2020-12-08 12:28

    I'd use a standard TCP/IP socket, where the app listens on some port and the library connects to it to report what it has to report and expect the answers.

    The abstraction is robust, well supported and will have no interop issues.

提交回复
热议问题