在C#中的多客户端/服务器的聊天程序? [英] multi client/server chat program in c#?

查看:251
本文介绍了在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#中的多客户端/服务器的聊天程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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