Evaluate Weigh the pros and cons of technologies, products and projects you are considering.

ONC RPC tools for .NET

I want to call a classic RPC server via TCP or UDP with C# .NET Client. The RPC server expects binary. For example, I want to call the GetSession() method on the machine "mymachine" on port=600004002. In the book by Ingo Rammer ( Advanced .NET Remoting), there is nothing written about this and how I understood .NET uses "ASCII" (XML) to make this kind of calls. Does anybody know how I can do that? The ONC rpcgen works just for C/C++. Other companies take a lot of money to generate C# stubs.
As far as I'm aware Distinct Corporation is the only provider of ONC RPC tools for .NET (VB and C#). See http://www.onc-rpc-xdr.com/products/rpc/rpc-dot-net.asp. I agree with you, the product is pretty expensive.

Your other option is to generate a C/C++ client stub as a DLL, and then use the Microsoft's .NET-to-COM wrapper technology -- Runtime-Callable Wrappers -- to call the DLL from your .NET client. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/callcomcomp.asp.

Dig Deeper on Topics Archive

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.