RPC from Windows to linux

旧巷老猫 提交于 2019-11-27 14:54:44

问题


Is there some (working) example how to create RPC from windows to linux?

Client should be windows NT application, server is linux.

It needs to be MSRPC.

No Corba, no XML-RPC, SUN-RPC etc

MSDN says this:

RPC can be used in all client/server applications based on Windows operating systems. It can also be used to create client and server programs for heterogeneous network environments that include such operating systems as Unix and Apple.

Unfortunately after spending few hours on google I'm giving up.

My expectation:

  • Linux node should have samba installed, because their MSRPC implementation works.
  • Using IDL file I generate stubs for both client and server
  • Client is built using MSVC
  • Server is build using gcc with some includes/libraries from samba (or other libs)
  • Linux node must have such RPC port mapper

Can someone point me out?


回答1:


I think you have 2 possible ways to deal with this:

1- You can try using DCOM with wine, which means that you will actually write your code for windows, but at the same time you can test your results in the process and avoid using WinAPI calls that wine is not able to handle properly. This approach will allow you to generate stubs code from your IDL files.

2- You can try using Samba RPC Pluggable Modules, but I am afraid in this case the RPC communication will be more primitive.

Edit:

It seems there are many other ways. I found a list of libraries in DCOM-Wikipedia, j-Interop for example looks particularly promising.



来源:https://stackoverflow.com/questions/13087092/rpc-from-windows-to-linux

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!