IPC 在命名管道和套接字之间进行简单切换

发布于 2024-11-03 00:01:50 字数 141 浏览 9 评论 0原文

我搜索一些 C++ ipc lib,它允许我在命名管道(本地使用)和 tcp ip 套接字之间进行简单切换,以便我可以在计算机外部发送消息。

我的应用程序必须分开。首先是用户空间应用程序,其次是服务。我需要在他们之间发送短信。

平台窗口

I search for some C++ ipc lib that allow me to simple switch between named pipes (local use) and tcp ip sockets so i can send messages outside computer.

My app have to parts. First is users space app second is service. I need to send short messages between them.

Platform Windows

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

溇涏 2024-11-10 00:01:51

我会推荐

使用 RPC 进行 IPC

RPC使应用程序能够调用
远程功能。因此,RPC
使IPC像调用一样简单
功能。 RPC 运行于
在单台计算机上或在
网络上的不同计算机。

http://msdn.microsoft.com/en- us/library/aa365574(v=vs.85).aspx

和最佳 RPC 编程实践:

http://msdn.microsoft.com/en-us/library/aa373563(v=vs.85).aspx

I would recommend

Using RPC for IPC

RPC enables applications to call
functions remotely. Therefore, RPC
makes IPC as easy as calling a
function. RPC operates between
processes on a single computer or on
different computers on a network.

http://msdn.microsoft.com/en-us/library/aa365574(v=vs.85).aspx

and Best RPC Programming Practices :

http://msdn.microsoft.com/en-us/library/aa373563(v=vs.85).aspx

灵芸 2024-11-10 00:01:51

您的目标平台是什么?虽然不是使用命名管道,而是使用内存映射文件,但我们的 MsgConnect 似乎可以满足您的需求。它是专门为像您这样的任务而设计的。 MsgConnect 允许您在本地系统(使用内存映射文件或 TCP 或 UDP 套接字)或跨网络(使用 TCP 或 UDP 套接字)发送带有数据负载的消息。

What platform are you targeting? While not with named pipes, but memory-mapped files, our MsgConnect seems to fit your needs. It was designed specifically for tasks like yours. MsgConnect lets you send messages with data payload on the local system (using memory-mapped files or TCP or UDP sockets) or across network (using TCP or UDP sockets).

坏尐絯℡ 2024-11-10 00:01:51

使用 RCF C++ 您可以切换传输层(无论是命名管道、tcp 还是udp 与 Boost:ASIO 等)非常无缝。

With RCF C++ you can switch your transport layer (be it named pipes, tcp and udp with Boost:ASIO, etc) quite seamlessly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文