CTraceRoute封装跟踪路由功能
CTraceRoute封裝跟蹤路由功能
一個(gè) MFC 類,用于封裝跟蹤路由功能,CTraceRoute包含一個(gè)簡單而干凈的 C++ 接口,可用于網(wǎng)絡(luò)故障排除和診斷
CTraceRoute 被設(shè)計(jì)為一個(gè) MFC 類,以支持實(shí)現(xiàn)類似于 Windows 中包含的“tracert”應(yīng)用程序的跟蹤路由功能。如果您不知道,tracert 是一個(gè)實(shí)用程序,CTraceRoute記錄計(jì)算機(jī)通過 Internet 直到到達(dá)特定目的地的路由或每個(gè)網(wǎng)關(guān)。
CTraceRoute跟蹤路由基于 PING / ICMP 協(xié)議,并具有計(jì)算每個(gè)希望花費(fèi)的金額的作用。直接的好處是它可以幫助網(wǎng)絡(luò)管理員了解連接問題。作為旁注,ICMP 是指一種 Internet 協(xié)議,用于檢索有關(guān) IP 數(shù)據(jù)包如何路由的信息。
因此,CTraceRoute可以在開發(fā)各種應(yīng)用程序以進(jìn)行故障排除或檢測 Internet 連接的潛在問題時(shí)使用該庫。此外,它包含在完全符合 Unicode 的 C++ 類中,并在工作區(qū)文件中包含 Unicode 構(gòu)建選項(xiàng)。
在CTraceRoute庫的值得注意的特性中,您可以計(jì)算可通過類 API 設(shè)置的可配置超時(shí),并提供虛擬函數(shù)來支持回調(diào)。最后但同樣重要的是,該應(yīng)用程序帶有一個(gè)簡單而干凈的同步 C++ 接口,據(jù)開發(fā)人員稱,它可以提供比使用異步套接字更簡單的編程模型。
An MFC class is used to encapsulate the tracking routing function. It contains a simple and clean C + + interface, which can be used for network troubleshooting and diagnosis
Ctraceroute is designed as an MFC class to support the tracking routing function similar to the "tracer" application included in windows. If you don't know, tracert is a utility that records the route or each gateway of a computer through the Internet until it reaches a specific destination.
Tracking routing is based on Ping / ICMP Protocol and has the function of calculating the amount of each desired cost. The immediate benefit is that it can help network administrators understand connection problems. As a side note, ICMP refers to an internet protocol used to retrieve information about how IP packets are routed.
總結(jié)
以上是生活随笔為你收集整理的CTraceRoute封装跟踪路由功能的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Visual Studio Code+d
- 下一篇: 简单几步让App Store软件下载快如