IPC 在命名管道和套接字之间进行简单切换
我搜索一些 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我会推荐
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
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
您的目标平台是什么?虽然不是使用命名管道,而是使用内存映射文件,但我们的 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).
使用 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.