如何使用远程处理使用Windows窗体创建聊天应用程序 [英] How to create a chat application using windows forms using Remoting

查看:100
本文介绍了如何使用远程处理使用Windows窗体创建聊天应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在代码项目中浏览了一个聊天应用程序。



使用.NET Remoting的简单聊天应用程序 [ ^ ]





但它只提供群聊,我想像其他信使一样进行个人聊天。



请给出一些想法。我期待解释。

请不要粘贴任何链接,因为这不会解决我的问题。



我只需要这样做的想法这个

I have gone through a chatting application in Code Project.

A Simple Chat Application Using .NET Remoting[^]


But it provide only group chat I want to make personal chat as in other messengers.

Please give some idea. I am expecting explanation.
Please don't paste any links because that wont fulfill my problem.

I need only the idea for doing this

推荐答案

你提出的问题,你的问题是无法回答的。你的邋nit尼特会让任何人在一篇表格中为你整理整篇文章。除了阅读链接之外你什么都没有,你显然不会读它们所以你被卡住了。



如果你想与其他即时通讯服务互操作,你将不得不向拥有该服务的人放弃一大笔现金,或者你'我将不得不尝试解析网络流量,以查看其他服务如何在您自己的代码中进行通信和模拟。祝你好运!
Your question, with the demands you placed in it, is unanswerable. Your dumpy nit going to get anyone to type up am entire article in a form post just for you. You're going to get nothing but links to read and you apparently won't read them so you're stuck.

If you want to interoperate with other instant messaging services you're going to have to either give up a ton of cash to the people that own the service or you're going to have to try and parse the network traffic to see how that other service communicates and emulate that in your own code. Good luck with that!


所以你有示例代码 - 不是最好的或最新的方法,但很容易理解。如果你真的想在.NET Remoting上建立一个聊天应用程序(为什么不是WCF?),那么将消息广播到特定的客户端并不是所有人都应该很容易 - 你需要一些基础设施。我建议另一个抽象级别 - 一种空间。因此,服务器向房间中的所有参与者广播消息,而不是向所有客户端广播消息。因此,客户端将注册服务器/房间组合。还要考虑如何处理登录,安全问题(加密消息?),以及谁应该是您的用户。 Chat-App在Internet中最有意义 - 但是因为你想使用远程处理我认为你的应该是内联网吗?



P.S.正如Dave Kreskowiak所提到的 - 如果你想与其他聊天应用程序实现互操作,那么天真的方法就不会这样做。 - 抱歉,如果您不得不问如何使用远程处理创建聊天应用,这可能超出您的舒适区...
So you have the sample code - not the best or latest approach but easy to understand. If you really want to base a chat application on .NET Remoting (why not WCF?), it should be easy to just broadcast the message to a specific client not to all - you'll need some "infrastructure" for this. I'd suggest another abstraction-level - kind of "room". So the Server broadcasts messages to all participants in a room and not to all "Clients". So Client would "register" with Server/room combination. Also think about how to handle Login, Security concerns (encrypt Messages?), and who should be you users. Chat-App makes most sense in Internet - but because you want to use remoting I assume yours should be for an intranet?

P.S. As Dave Kreskowiak mentioned - If you want to implement interoperation with other chat applications a naive approach won't do it. - Sorry, but if you have to ask how to create a chat app with remoting, this is may beyond your "comfort zone"...


这篇关于如何使用远程处理使用Windows窗体创建聊天应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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