getting client to automatically send data to server

老子叫甜甜 提交于 2019-12-24 22:18:02

问题


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 ?


回答1:


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.



来源:https://stackoverflow.com/questions/4954587/getting-client-to-automatically-send-data-to-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!