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

后端 未结 2 607
-上瘾入骨i
-上瘾入骨i 2020-12-09 06:32

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 ma

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-09 07:08

    I think that you should be looking for C unix domain sockets, not pipes. Pipes are different. Look for some C code examples on Google with unix domain sockets, try a few out, get that working, then go back to the node-ipc stuff.

    I took the node-ipc and node.js tags off because Node isn't relevant if you are trying to figure out the C side first.

提交回复
热议问题