如何在vb.net中实现traceroute? [英] how to implement traceroute in vb.net?

查看:152
本文介绍了如何在vb.net中实现traceroute?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

任何人都可以帮我一个算法来实现vb.net中的traceroute

Hi all,
can anyone help me an algorithm to implement the traceroute in vb.net

推荐答案

跟踪路由适用于Ping带有TTL的IP(生存时间)

每个集线器/跃点或者你用它命名的TTL都会增加1个值。



所以:

- 解析webaddress / ipaddress

- 在.NET中使用PING类( HERE [ ^ ])并使用TimeOut选项。



从1循环到最大值为254(对于超时值),但一旦IPADDRESS与所需的匹配,就会离开循环。这就是全部。



玩得开心编码。这很容易,你应该能够自己做。



代码项目示例 - > 如何在C#中使用PING服务器 [ ^ ]
trace route works on Ping an IP with a TTL (Time To Live)
With each hub/hop or what ever you name it the TTL adds 1 value.

So:
- Resolve the webaddress/ipaddress
- Use the PING class in .NET (HERE[^]) and use the TimeOut option.

Loop from 1 to maximum 254 (for the timeout value), but get out of the loop as soon as the IPADDRESS matches the desired. That's all.

Have fun coding. This is so easy you should be able to do it yourself.

Example from Code Project -> How to PING Server in C#[^]


这篇关于如何在vb.net中实现traceroute?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆