It depends on the specific requirements for your chat program. Is your application going to be web-based (runs in the browser) or will people need to download a program for it to work? Will communication be handled directly from one computer to another (peer-to-peer), or will there be a central server that handles communication? Will there be "chat rooms" where more than two people are chatting together at once? Will chat conversations be encrypted for privacy? Will chat conversations be saved?
Depending on your answers to these questions, you may want to look into:
Windows Communication Foundation
Asp.net MVC
SQL Server
Entity Framework or LINQ to SQL
Interprocess communication
AJAX
JSONP
Windows Presentation Foundation or Windows Forms
... and possibly others as well.
If you don't know where you're going, any road will get you there. -- The Cheshire Cat
发布评论
评论(2)
如果您想制作“聊天”应用程序,则需要了解进程间通信。
通常,在 C# 中,当前是通过 Windows Communication Foundation 处理的。这将是一个很好的起点。
You'll need to understand interprocess communication if you want to make a "chat" application.
Typically, in C#, this is currently handled via Windows Communication Foundation. That would be a good place to start.
这取决于您的聊天程序的具体要求。您的应用程序是基于网络的(在浏览器中运行)还是人们需要下载程序才能运行?通信是直接从一台计算机到另一台计算机(点对点)进行处理,还是有一个中央服务器来处理通信?是否会有两个以上的人同时聊天的“聊天室”?为了保护隐私,聊天对话会被加密吗?聊天记录会被保存吗?
根据您对这些问题的回答,您可能需要研究:
...以及可能的其他内容。
It depends on the specific requirements for your chat program. Is your application going to be web-based (runs in the browser) or will people need to download a program for it to work? Will communication be handled directly from one computer to another (peer-to-peer), or will there be a central server that handles communication? Will there be "chat rooms" where more than two people are chatting together at once? Will chat conversations be encrypted for privacy? Will chat conversations be saved?
Depending on your answers to these questions, you may want to look into:
... and possibly others as well.