Nodejs communicate with C++ program?

前端 未结 3 1961
闹比i
闹比i 2021-02-05 13:46

Say I\'ve got a c++ program running on the same server with a Node.js web app, on a linux server.

The c++ program maintains a queue, and what I want to do with Node.js i

3条回答
  •  不知归路
    2021-02-05 13:50

    If you want to use an IPC mechanism, you may consider writing a Node.js C++ module, and then use something from the Boost.Interprocess library to communicate with your other app.

    Boost.Interprocess has mechanisms already build for sharing containers from the standard library. Its also cross platform if you want to be open to that in the future.

提交回复
热议问题