winform聊天应用程序中的通知服务。 [英] notification service in winform chat application.

查看:106
本文介绍了winform聊天应用程序中的通知服务。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我创建了一个使用计时器的聊天应用程序,每1秒从数据库服务器获取响应。但这不是实时聊天的好方法。每次我向服务器请求任何消息是否有。我需要推送服务,如果有新的更新可用,那么服务器本身就向客户端发送消息,无需客户端向服务器请求。



我不知道怎么做这种类型的通知服务。

Hi everybody,

I have created a chat application using timer to get response from database server on every 1 second. But this is not a good step for real time chatting. Every time I request to server that any message has or not. I need push service where if new updates is available then server itself send message to client no need to client to request to server.

I have no idea about how to do this type of notification service.

推荐答案

试试这个例子。



使用C#的TCP / IP聊天应用程序 [ ^ ]



ASP.NET中的简单聊天应用程序 [ ^ ]



简单信使 - AC#MSN Messe类似nger的聊天应用程序 [ ^ ]
Try this examples.

TCP/IP Chat Application Using C#[^]

Simple Chat Application in ASP.NET[^]

Simple Messenger - A C# MSN Messenger-like Chat Application[^]


转到套接字编程

http://code.msdn.microsoft.com/windowsdesktop/Simple-Chat-Application-3f7f4ec5 [ ^ ]

使用DotNet进行应用程序 [ ^ ]
Go for socket programming
http://code.msdn.microsoft.com/windowsdesktop/Simple-Chat-Application-3f7f4ec5[^]
Chatting Application Using DotNet[^]


这篇关于winform聊天应用程序中的通知服务。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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