IPC单声道<-> 。网?
我有两个进程在同一台 Windows 机器上运行。一种是使用 mono,另一种是使用 MS .NET。
进程间通信的最佳解决方案是什么?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我有两个进程在同一台 Windows 机器上运行。一种是使用 mono,另一种是使用 MS .NET。
进程间通信的最佳解决方案是什么?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
真的,我想说你需要提供更多信息才能得到好的答案。 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...
我会选择远程处理。快速、简单、高效……我有没有提到它有多简单?
I would go for Remoting. Fast, simple, efficient and... did I mention how simple it is??