编写代理和服务器程序

编程入门 行业动态 更新时间:2024-10-25 18:23:35
本文介绍了编写代理和服务器程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨 我想分两部分来构建应用程序.其中一个将安装在服务器上,另一个将安装在客户端上.我想在它们之间发送数据. 我的目的是从网络客户端收集硬件信息. 我该怎么办? 当然,我知道如何从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?

更多推荐

编写代理和服务器程序

本文发布于:2023-11-25 22:30:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1631610.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:服务器   程序

发布评论

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

>www.elefans.com

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