gpt4 book ai didi

c - 将字节数组从 NodeJS 发送到 C 库

转载 作者:太空宇宙 更新时间:2023-11-04 04:21:54 24 4
gpt4 key购买 nike

我有一个 NodeJS 服务器与 C 程序在同一台服务器上运行。我需要从我的 NodeJS 服务器向我的 C 程序发送一个字节数组。我在 C 中有一个 set_title 函数。

set_title(uint16_t *title)

知道我该怎么做吗?

最佳答案

您需要某种形式的进程间通信才能做到这一点。

有一些图书馆可以帮助您完成这项工作,请查看 nanomsgzmq它们都具有 C 和 JS 绑定(bind)。

关于c - 将字节数组从 NodeJS 发送到 C 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45999680/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com