在C#中的多客户端/服务器的聊天程序?

编程入门 行业动态 更新时间:2024-10-10 00:26:51
本文介绍了在C#中的多客户端/服务器的聊天程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

客户端就能聊一对之一,在组(温和房间)类似于Skype的。

the clients will be able to chat one-to-one and in group (temperately rooms) similar to Skype.

我将使用的服务器授权客户

I will use the server to authorize the clients

我的问题是,这是更好一起去?

my question is which is better to go with?

(WCF)或(的TcpClient ,StreamReader的,和StreamWriter)

(WCF) or (TCPClient, StreamReader, and StreamWriter)

cheesr

推荐答案

我会投票为WCF还,因为它会为您提供无论使用什么协议做一个客户机/服务器架构的通用接口(绑定)选择在幕后。例如,你可以很快,只需几个配置的变化使通过SOAP通过HTTP的聊天程序的工作。 WCF也可以让您轻松地与不同语言编写的客户端进行互操作,但对于使用NetTcpBinding的两端.NET进行了优化。

I would vote for WCF also, as it will provide you with a common interface for doing a client/server architecture regardless of what protocol (binding) you choose behind the scenes. For example, you could very quickly make your chat program work across HTTP via SOAP with just a few configuration changes. WCF will also allow you to easily interoperate with clients written in different languages, but is optimised for .NET on both ends using the NetTcpBinding.

WCF还将无缝可视化工作Studio和包含在NET框架3.0及以上,所以没有第三方库是必需的。

WCF will also work seamlessly with Visual Studio and is included in the .NET framework 3.0 and above, so no third party libraries will be required.

更多推荐

在C#中的多客户端/服务器的聊天程序?

本文发布于:2023-11-30 22:33:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1651673.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:客户端   服务器   程序

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!