node-ipc

Communicating between NodeJS and C using node-ipc and unix sockets

前提是你 提交于 2019-12-17 18:47:53
问题 I want to communicate between NodeJS and a C program using node-ipc, over a Unix socket, which according to that homepage is the fastest option. (They will be on the same machine). That package claims it could communicate with a C program. (I had to sanity check). The problem is the examples don't give example C code, and I have next to no idea how I'd get them to talk. Can anyone point me to an example of C code to match those client/server examples? For example, how would I adapt this

Communicating between C and NodeJS using node-ipc and unix sockets

徘徊边缘 提交于 2019-12-11 16:49:10
问题 This question follows on from the following: Communicating between NodeJS and C using node-ipc and unix sockets In regards to the accepted solution (https://stackoverflow.com/a/39848936/1834057), I was wondering if someone might be able to clarify exactly how to send data from C to Node.js . The solution demonstrates sending data from Node.js to C , but not in reverse. I have an application that requires two-way communications, so the missing component is critical for me. My understanding of

Communicating between NodeJS and C using node-ipc and unix sockets

百般思念 提交于 2019-11-28 08:46:04
I want to communicate between NodeJS and a C program using node-ipc , over a Unix socket, which according to that homepage is the fastest option. (They will be on the same machine). That package claims it could communicate with a C program. (I had to sanity check). The problem is the examples don't give example C code, and I have next to no idea how I'd get them to talk. Can anyone point me to an example of C code to match those client/server examples? For example, how would I adapt this tutorial on working with unix pipes in C (Assuming I'm not completely off track?! Maybe it's " domain