编写代理和服务器程序 [英] writing an agent and server program
本文介绍了编写代理和服务器程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我想分两部分来构建应用程序.其中一个将安装在服务器上,另一个将安装在客户端上.我想在它们之间发送数据.
我的目的是从网络客户端收集硬件信息.
我该怎么办?
当然,我知道如何从WMI获取硬件信息,但是我不知道我应该如何创建代理
请帮帮我.
感谢
Hi
I Want to build an application in two parts. one of them will be installed on the server and another one on the client. and i want to send data between them.
my purpose is collecting hardware information from my network clients.
how should i do that?
of course i know how to get hardware information from wmi, but i don''t know how should i make a agent
please help me.
thanks
推荐答案
使用 ^ ]或 TcpClient [ ^ ]和 TcpListener [
Use the Socket Class[^] or a TcpClient [^]and a TcpListener[^]
The links all have examples with code.
感谢bru.我将测试这些链接.
我可以为客户端编写Windows服务吗?如果是,我应该如何连接到客户端系统并调用该特定服务?
thanks bru. I''ll test these links.
can i write a windows service for client? if yes, how should i connect to the client system and call that particular service?
这篇关于编写代理和服务器程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文