路由跟踪和Ping在C# [英] TraceRoute and Ping in C#
本文介绍了路由跟踪和Ping在C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有人有C#code得心应手做一个ping和跟踪到目标计算机?我要寻找一个纯粹的code解决方案,而我现在做的事情,这是调用PING.EXE和tracert.exe程序和解析输出。我想的东西更加健壮。
Does anyone have C# code handy for doing a ping and traceroute to a target computer? I am looking for a pure code solution, not what I'm doing now, which is invoking the ping.exe and tracert.exe program and parsing the output. I would like something more robust.
推荐答案
虽然基类库包含的平中,首创置业不包括任何tracert的功能。
Although the Base Class Library includes Ping, the BCL does not include any tracert functionality.
然而,一个快速搜索发现两家开源的尝试,首先在C#中第二次在C ++:
However, a quick search reveals two open-source attempts, the first in C# the second in C++:
- http://www.$c$cproject.com/KB/IP/tracert.aspx
- http://www.$c$cguru.com/Cpp/I-N/network/basicnetworkoperations/article.php/c5457/
这篇关于路由跟踪和Ping在C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文