Windows服务,可在数据库中保存信息并向其他用户报警

编程入门 行业动态 更新时间:2024-10-26 23:37:05
本文介绍了Windows服务,可在数据库中保存信息并向其他用户报警的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好. 我正在寻找一种解决此问题的方法. 让我用一个例子来描述问题. 假设我是网络中的服务器或用户.我将文件发送给另一个用户(user2).此文件可能具有不同的内容.该文件必须保存在sql server db中的表中.然后向user2发出警报,例如显示此消息已接收到文件". 如何使用Windows服务执行此操作? 我不需要套接字编程... 我认为这个问题将通过线程解决! (我不确定) 那我该怎么办? 关于

Hello everyone. I''m looking for a way to solve this problem. Let me describe the problem with an example. Imagine i''m a server or an user in a network. i send a file to another user(user2).This file may has different contents . This file must be save in a table in sql server db.Then an alarm show to user2 , for example with this message "A file has been received". How can i do this with windows service? I don''t need socket programming o ... I think this problem will be solved with thread! (i''m not sure) So What can i do? Regards

推荐答案

,您需要指定数据传输方式,然后,需要给user2的客户端程序通过套接字或读取数据库或文件来获取消息带有消息. 问候. you need to specify the data transfer way, and then, you need a client program to the user2 to get the messages via socket or reading a database or file with messages. regards.

更多推荐

Windows服务,可在数据库中保存信息并向其他用户报警

本文发布于:2023-10-20 09:11:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1510544.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:可在   并向   其他用户   数据库中   信息

发布评论

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

>www.elefans.com

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