让客户端自动将数据发送到服务器 [英] getting client to automatically send data to server
问题描述
我想让客户端自动ping几个ip地址,然后从ping请求中提取数据,然后将此数据提供给服务器以便进行记录. 这可能吗?
我要运行一条通知,以使客户端计算机向这些站点发送ping请求,并且需要报告延迟和软件包丢失.
我认为您无法从Javascript中掌握此类低级信息.
您可以做的是采用 http://speedtest.net 风格的速度测试,该测试会将数据发送回去,使用JS或Flas.但是,我希望适当的速度测试并非易事.我认为,如果可以的话,有些提供商会转售其现成的速度测试解决方案.
除此之外,根据您的情况,也许可以考虑编写一个可执行程序,该程序调用系统的ping
命令并将结果传送给您.当然,那将需要客户端安装.
i am running a server side application which receives data of ping done from client side to certain ip addresses. Currently a person goes to these clients and does the ping manually. Can i automate this process of client running the ping program through javascript or any client side language ?
I want to make the client automatically ping a few ip addresses, then extract the data from the ping request and then feed this data to the server so it can be recorded. Is this possible ?
i want to run a screipt which makes the clients machine send a ping request to these sites and the latency and package loss needs to be reported.
I don't think you can get hold of such low-level information from within Javascript.
What you could do is speed tests in the style of http://speedtest.net, which send data back and forth using JS or Flas. However, I expect a proper speed test is not trivial to implement. I think there are providers who re-sell their ready-made speed testing solutions if that's an option.
Other than that, depending on your situation, maybe consider writing an executable program that calls the system's ping
command and transmits the results to you. That would require client-side installation though, of course.
这篇关于让客户端自动将数据发送到服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!