在c#中使用RPC客户端服务器体系结构,支持任何数据格式。 [英] use of RPC Client Server Architecture in c# with supporting any data Format.

查看:73
本文介绍了在c#中使用RPC客户端服务器体系结构,支持任何数据格式。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,



任何人都可以分享我在使用C#和



Can anyone share me code snippet which useful in implementing Remote Procedure call client server Architecture using C# and

推荐答案

这个问题没有多大意义,因为旧的术语RPC只适用于.NET这个词的广义,作为非常先进和面向对象的RPC风格,如经典远程或WCF。 Web上有太多代码示例,但最小样本可能看起来比您想象的要大。



请参阅:

http: //en.wikipedia.org/wiki/.NET_Remoting [ ^ ],

http: //msdn.microsoft.com/en-us/library/kwdt6w2k%28v=vs.100%29.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/2e7z38xb%28v=vs.100%29。 aspx [ ^ ],

http://en.wikipedia.org/wiki/Windows_Communication_Foundation [ ^ ],

http://msdn.microsoft.com/en-us/library/dd456779.aspx [ ^ ]。



相信我,即使我花了足够的时间来开发一个最小的代码示例,它不够有效,因为您还必须理解它,如果不阅读架构和良好的.NET理解就不容易。这需要相当长的时间,即使你有很好的学习这些东西的经验。



如果你愿意,你可以使用套接字建模RPC级别的东西,或者更确切地说 TcpListener / TcpClient



参见: http://en.wikipedia.org/wiki/Remoting [ ^ ]。



-SA
The question makes little sense, because the old term "RPC" can be applicable to .NET only in a broad sense of this word, as very advanced and object-oriented flavors of "RPC", such as "classical" remoting or WCF. There are too many code samples on the Web, but the minimal sample will probably look bigger than you may think of.

Please see:
http://en.wikipedia.org/wiki/.NET_Remoting[^],
http://msdn.microsoft.com/en-us/library/kwdt6w2k%28v=vs.100%29.aspx[^],
http://msdn.microsoft.com/en-us/library/2e7z38xb%28v=vs.100%29.aspx[^],
http://en.wikipedia.org/wiki/Windows_Communication_Foundation[^],
http://msdn.microsoft.com/en-us/library/dd456779.aspx[^].

Believe me, even if I spend enough time to develop a minimal code sample, it would not be effective enough, because you would also have to understand it, and it would not be easy without reading on the architecture and good .NET understanding. It will take considerable time, even if you have good experience learning such things.

If you want, you can model something of the level of "RPC" using sockets, or rather TcpListener/TcpClient.

See also: http://en.wikipedia.org/wiki/Remoting[^].

—SA


这篇关于在c#中使用RPC客户端服务器体系结构,支持任何数据格式。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆