C# 远程处理/WCF 客户端服务器应用程序使用什么通信技术?

发布于 2024-07-10 23:26:02 字数 429 浏览 8 评论 0原文

我真的很想得到这样的建议。 我考虑客户端服务器项目已经有一段时间了,并且将使用 .NET。 本来只是打算使用 2.0,但最近有了 VS2008,我想我也应该真正探索 3.5。

该应用程序将连接一台服务器和许多客户端。 客户端和服务器都需要相互通信(即双向通信)。 这将通过互联网运行。

我打算只使用远程处理来实现此目的,但是有什么或任何原因我应该在 3.5 中使用不同的方法吗?

我意识到当我使用远程处理时,客户端的端口可能被阻止,防火墙可能会出现一些问题。

实际上,我正在寻找建议,以成为处理客户端和服务器之间的通信的最佳方式,该方式将使用 .NET 在网络上工作(希望客户端也能够运行其他语言,但这并不重要)猜测)。 客户端和服务器都必须能够调用彼此的方法。

谢谢,

圣诞快乐。

乔恩

I am after so advice really. I have been thinking about a client server project for a while and am going to be using .NET. Originally is was just going to use 2.0 but recently got VS2008 and thought I should really explore 3.5 as well.

The application will have one server and many clients connected. Both the client and the server will need to talk to each other, (i.e. two way comms). This will be running across the internet.

I was going to just use remoting for this but is there anything or any reason I should use a different approach with 3.5?

I realize I may have some problems with firewalls when ports could be blocked at the client when I use remoting.

Really I am looking for suggestions to be the best way to handle communications between a client and server that will work across the net using .NET (would like the client to be able to be running other languages as well really but that is not vital I guess). Both the client and the server must be able to call each others methods.

Thanks,

and merry Christmas.

Jon

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

半﹌身腐败 2024-07-17 23:26:02

我刚刚开始接触 WCF,并在 SO 上围绕这个主题提出了一些问题。 我在过去一周左右学到的一些东西:

  1. 这篇文章非常棒: MS Pub-Sub 与 WCF
  2. WCF 是最佳选择。 它的动态配置和单一编程模型应该使其成为您优于传统 Web 服务或远程处理的首选。
  3. 通过配置,您的 WCF 服务可以通过简单的 HTTP 绑定公开,从而允许传统 Web 服务使用它。

I'm just starting out in WCF and have asked a few questions around this topic here on SO. Some things I've learned over the past week or so:

  1. This article is excellent: MS Pub-Sub with WCF
  2. WCF is the way to go. It's dynamic configuration and single programming model should make it your preferred choice over traditional web services or remoting.
  3. Through configuration your WCF service can be exposed via a simple HTTP binding allowing it to consumed by traditional web services.
柒夜笙歌凉 2024-07-17 23:26:02

据我所知,WCF 应该取代 .NET Remoting,所以我会这么做。

As far as i'm aware WCF is supposed to replace .NET Remoting so i'd go for that.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文