IPC单声道<-> 。网?

发布于 2024-09-10 05:38:53 字数 83 浏览 0 评论 0 原文

我有两个进程在同一台 Windows 机器上运行。一种是使用 mono,另一种是使用 MS .NET。

进程间通信的最佳解决方案是什么?

I have two processes running on the same windows machine. One is using mono, the other is using MS .NET.

What is the best solution for inter process communication?

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

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

发布评论

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

评论(2

深巷少女 2024-09-17 05:38:53

真的,我想说你需要提供更多信息才能得到好的答案。 IPC 的类型取决于您的需求。我使用过多种类型的 IPC、共享内存、文件、内存映射文件、管道、套接字等。我认为这个问题与 .Net 与 Mono 无关,更多地与您的具体需求有关。

也就是说,我的大多数应用程序主要使用 TCP 和 UDP。当您通过网络进行通信时,虚拟机、语言、计算机等都变得无关紧要。对于本地通信,您的环回设备 (127.0.0.1) 效果很好。如果您决定将应用程序转移到另一台计算机上,则只需更改地址即可。

将您的数据(例如,http 放入现有协议中,您将获得开箱即用的大多数语言...

Really, I would say you need to provide more information for a good answer. The type of IPC depends on your needs. I've used several types of IPC, shared memory, files, memory mapped files, pipes, sockets, etc. I think this question is less about .Net vs. Mono and more about you specific needs.

That said, I've used mostly TCP and UDP for most of my applications. The VM, language, computer, etc. become irrelevant when you put your communications over the network. For local communications your loopback device (127.0.0.1) works great. If you ever decide to take your application to another machine, you only need to change addresses.

Put your data (e.g. http in an existing protocol and you'll get out-of-the-box from most languages...

听风吹 2024-09-17 05:38:53

我会选择远程处理。快速、简单、高效……我有没有提到它有多简单?

I would go for Remoting. Fast, simple, efficient and... did I mention how simple it is??

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