在Linux世界中,最接近Windows COM/DCOM的东西是什么?

问题描述:

有什么比管道/插座更高级,更全面的东西了吗?

Anything higher-level, and more comprehensive than pipes/sockets?

是的,有很多东西,但是没有像COM/DCOM那样的标准"东西.至少在Windows中,"Windowsish"人员使用COM/DCOM,非"Windowsish"人员使用其他RPC机制.

Yes, there are lots of things, but there isn't one as "Standard" as COM/DCOM. At least, in Windows, COM / DCOM are used by "Windowsish" stuff, and other RPC mechanisms are used by un-"Windowsish" stuff.

Linux并没有类似的东西,而是需要更高级别RPC协议的东西通常使用其语言提供的任何东西,或者最适合应用程序需求的特定库.例如Java中的RMI,Python的"pyro"模块等,它们将提供与DCOM的(某些)功能奇偶校验.

Linux doesn't have anything like that, instead things which need higher level RPC protocols typically use whatever their language provides, or a specific library which best suits an app's needs. Examples of that would be RMI in Java, Python's "pyro" module, etc, which will provide (some) functional parity with DCOM.

Corba有点重量级,但显然有人使用它.

Corba is a bit heavyweight but some people apparently do use it.

许多应用程序都有自己的RPC库.除非必须这样做,否则不要这样做.

A lot of applications roll their own RPC libraries. Don't do that unless you have to, it's nasty.