大家好. 我正在寻找一种解决此问题的方法. 让我用一个例子来描述问题. 假设我是网络中的服务器或用户.我将文件发送给另一个用户(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服务,可在数据库中保存信息并向其他用户报警
发布评论