发送多个 Ping 而不等待回复 Windows C#
我目前正在为我最后一年的理学学士项目进行研究。最终产品将包括室内位置跟踪功能。传统的或最常用的方法似乎是 RSSI 三角测量,但我热衷于尝试提高 PING 方法的准确性,因为我认为这更适合可能遭受信号衰减的位置(我打算使用的位置)使用该设备可能会产生中等程度的无线电干扰)。
我想知道是否可以用 C# 编写软件来模仿 linux ping 实用程序的 ping 洪水功能(它可以发送多个 ping 而无需等待回复)。我假设使用多个 ping 并从第一个到最后一个计时将能够在较短的距离内使用该方法。
非常感
谢迪伦
Im currently doing research towards my final year BSc project. The final product will include indoor location tracking functionality. The traditional, or most utilised method seems to be RSSI triangulation, but I am keen to attempt to improve the accuracy of the PING method as I think this would be better suited to locations that may suffer from signal attenuation (the locations I am intending to use the device may have a moderate ammount of radio interference).
I was wondering if it was possible to write software in c# that would mimick the ping flood ability of linux ping utility(which enable the sending of multiple pings without waiting for a reply). I hypothesize that using multiple pings and timing them from the first to the last will enable the usage of the method over shorter distances.
Many Thanks
Dylan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
试试这个希望它能正常工作
try this hope it works fine
您必须使用 Ping.SendAsync() 函数。正如 MSDN 页面中所述:
下面是一个关于如何执行此操作的精彩示例: http://msdn.microsoft.com /en-us/library/a63bsyf0.aspx
You have to use the Ping.SendAsync() function. As stated in the MSDN page:
Here's a splendid example on how to do it: http://msdn.microsoft.com/en-us/library/a63bsyf0.aspx